blombar wrote:You should take a look at CookSwing at http://cookxml.yuanheng.org/cookswing/. This may be what you are looking for.
Alex Konshin wrote:Have you ever thought about implementing storing/loading of Swing UI from XML similar to what is done for SWT in XWT?
Eric Clayberg wrote:We would only do that if Oracle/Sun added full support for it to the JDK or if some XML-based API became a de-facto standard in the Swing world. I don't see either happening any time soon.
Eric Clayberg wrote:Personally, I don't see much benefit to XML-based UI's. The XML API becomes, in effect, just another language you are trying to interface with Java...often with a considerable impedance mismatch and the added slow-down of an extra layer (unless the XML code is compiled directly to byte code). For anyone even marginally familiar with Swing, you aren't likely to gain any better readability, and for anything even modest complex, XML often runs out of steam pretty quickly (leaving you with the least common denominator), and you end up resorting to Java code anyway. I'd much rather focus on generating well formatted, easy-to-ready Java/Swing code as we do already.
Alex Konshin wrote:if such standard would be implemented in WindowBuilder and Eclipse 4 (e4) then it has a good chance to become a de-facto standard.
Alex Konshin wrote:One of the obvious benefit is separation of code from meta data as UI declaration actually is.
Alex Konshin wrote:It also would simplify splitting tasks between developers (one could be responsible for representation UI while another implement business logic). Well, you might say that it can be done now by changing Java code but please note that any changes in Java code lead to reintegration, retesting and redeploying of the application. But in fact you just changed meta-data. If, for example, your UI is driven by data structure than it doesn't make sense to rebuild application if that structure is changed.
Alex Konshin wrote:Another benefit would be unifying usage of Swing and XWT in Java code. Theoretically I don't see any problem for GWT to join this list. If all forms would be loaded from XML and bindings are established the same way for all these frameworks then Java code might be the same. As result this feature might really make Java GUI application become "write once run anywhere".
Users browsing this forum: No registered users and 1 guest