• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

XML based SwingUI

 
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
(instanceof Sidekick)
Posts: 8791
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi
tyr
www.thinlet.com
 
vishal sodani
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
To use xml-to-swing,seems to me requires very good knowledge of Swing
 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Slideshow boring ... losing consciousness ... just gonna take a quick nap on this tiny ad ...
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic