One of the banes of Java GUI development is in the clean separation of GUI definition and control and business logic. Enter XUI, a new framework for Java that has the ambitious aim of not just solving this problem but of making it easy.
by Laurence Moroney
February 28, 2005
here are many Java user interface toolkits. The most common, of course, are AWT and Swing, each of which has its advantages and drawbacks. Swing in particular, while it looks great, can be burdensome to develop and leads to large code footprints. As an example, Figure 1 shows a very simple Swing GUI developed with the excellent Oracle JDeveloper IDE.
Without any code to activate this GUI and respond to events such as the Button Click, Figure 1 already involves 114 lines of code, including the necessary imports. A snippet of this code is shown below, where you can see that four lines of code alone are needed to describe the button. This verbosity isn't the fault of the IDEit's just the way that AWT and Swing work, and this IDE uses components from these frameworks as appropriate.
It's quick, easy and you get access to all the articles on DevX.
This registration/login is to allow you to read articles on devx.com. Already a member?
To become a member of DevX.com create your Member Profile by completing the form below. Membership is free!