Re: Hello Getting Started Question

[email protected] Sun, 15 May 2005 11:45:43 +0200
Newsgroups gmane.comp.embedded.carlsbad-cubes
Message-ID <[email protected]>
[email protected] wrote:
> Frank, 
> 
>     The examples on the swixml website are the results of a process and
> are one of the reasons why I am attempting to recreate the samples from
> scratch.

No, they are not. Where did you get that from? These examples are real
ones. They are not generated. You use the xml in your program directly
by calling "render" from a SwingEngine object. The returned container
and the SwingEngine object helps you to access, modify, ... the gui
rendered.

> I am wondering about how I can make the examples again from my
> programming knowledge of java. I know you tell something to read an xml
> file and then a class is created from that process.

You know wrong ;) No class is created through the xml. Load the
swixml-zip-File, append the contained jar files to your classpath and
try to compile and run the examples. I assure you, this is all...

> Next is the java
> creation process using the JVM. It's those processes which I am
> interested in not the samples or the results after the process. The
> Samples look great BTW. 

Swixml creates a object hierarchy "on the fly" consisting of Swing
objects described in the xml file given. I assume you got somehow
attached to the idea to create a class but this approach is much less
flexible than swixmls approach.

BTW: what use has it to show *generated* code other than to show the
very clever code generation? When the code generation gets much more
clever, the generated code looks totally different and leaves the reader
in total confusion.

Frank


> 
> -Dan 
> 
> 
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of
> [email protected]
> Sent: Saturday, May 14, 2005 10:37 AM
> To: [email protected]
> Subject: Re: [Forum] Hello Getting Started Question
> 
> Look at the examples on the swixml website. The will give you a clue at
> least to ask more specific quetions ;)
> 
> Yours,
> 
> Frank
> 
> 
> _______________________________________________
> Forum mailing list
> [email protected]
> http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com
> 
> 
> _______________________________________________
> Forum mailing list
> [email protected]
> http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com
>