• Post Reply Bookmark Topic Watch Topic
  • New Topic

XML based SwingUI  RSS feed

 
vishal sodani
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Has any one tried using XML to generate GUI like SwingXML,Jeasy etc.What are its advantages vs actual coding?
thanks
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We used XML-defined forms to avoid distributing a zillion simple Swing panels with a fat client. A small framework allows XML specification of a subset of Swing components. It also populates fields from a Hashmap matching on the component name and moves any data entered to another Hashmap the same way. The whole thing kept the Jar size down on the Java distribution, but added XML files to the mix.
Along with XML-to-Swing tools, there are some XML to generic UI tools that could be portable across languages. That might be another motivation to use XML defined UI.
 
ashish kulkarni
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
tyr
www.thinlet.com
 
vishal sodani
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To use xml-to-swing,seems to me requires very good knowledge of Swing
 
Harry Pfohl
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
the first steps building small applications with swing are hard work.
If the GUI is build in XML and when you have a GUI-Builder with a preview like JEasyRepository, learning SWING is much faster.
You don't have to write source, compile and see what's happen.
Look at www.jeasy.de the Example source code and the Example.xml.
Have fun
Harry
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!