GUI with xml in java
Is it possible to create a user interface with java 开发者_开发技巧and eclipse using a xml file?
As in android
Thx
SwiXml looks like what you need.
Google Web Toolkit will support XML layout from version 2.0 onwards.
Quick Example
This is a web front end however and not swing.
Here's a 2006 article about a few options including SwiXml, which produced one of the few decent results in a 2004 GUI building challenge. There doesn't seem to be many new entries in the field--perhaps people all moved to Web 2.0--except the very promising Apache Pivot with WTKX.
I think as with any non-trivial project, you have to examine the alternatives based on your very specific requirements. I investigated all those options in early 2007 for a company project, but we ended up rolling our own (except using the CSS parser from JAXX) because none completely satisfied our needs.
精彩评论