Abhishek Chouhan wrote:
hi frank,
    Very thanks for your reply.
Actualy I am looking for some tool which generate basic swing GUI based on xml. So, that it help me to rapidly generate GUI's.

Please, read the examples on the site I mentioned.

In short: You provide the xml files which define your GUI with the application classes. See some documentation regarding resource loading in the jdk docu. I use code like this to render a swixml gui file:

// put the xml directory somewhere in your classpath
URL guiUrl = MyClass.getResource("/xml/gui-file.xml");
SwingEngine se = new SwingEngine();
Component c = se.render(guiUrl);

This works very well if I put xml files (with appropriate path) in the jar with classes, images and the like.


    In swixml how can I add model and rendrer to components.

Have a look at example 7. The actual initclass (see the xml source) is the ComboModel which gets instantiated when the component is rendered.


thanks
abhishek

If you read the examples you will quickly understand how swixml works. I strongly recommend this if you don't want to annoy anybody with questions you get answerd after clicking four or five times...


Frank


Reply via email to