The Source for Java Technology Collaboration
User: Password:



Start New Message Delete Post a Reply

Article: 
 Building GUIs with SwiXml
Subject:  Weird...
Date:  2006-02-27 18:46:54
From:  macg33k


I'm a little freaked out right now. I had this SAME idea on the way to work today because I was frustrated with writing java UI code. I come home to a link in my instant messenger window to this page @_@. I'm not surprised that someone already had the idea... just a little weirded out how things worked out.

Anyways, have you thought about writing a "compiler" that would instantiate the GUI (basically a call to SwingEngine.render()) and then serialize the UI to a file so you don't have to parse the XML file and do all the reflection "magic" every time the app is run? Loading the UI from a file isn't faster than building the UI from java code, but it might be faster than parsing the XML file and then building.

I like how this looks. Good work.

 Feed java.net RSS Feeds