JellySwingJellySwing is a simple Jelly library which can be used to create Swing user interfaces. It allows XML documents (Jelly scripts) to be used to define the layout and rendering of Swing front ends which avoids lots of mundane Java coding, using markup to define the view of your front end and allowing you to bind to Java code for the business objects and models. This mechanism uses seperation of concerns and MVC ideas from web applications, allowing the rendering of your Swing front end to be easily transformed (since its XML) into different styles while leaving your model and business objects untouched. It also allows different views to be constructed independently of your models. There is an example JellySwing script here To try running the example type the following command then you should see a full Swing user interface appear with pull down menus, a splitter pane, a form, entry fields, buttons and a table. maven demo:swing This example even shows that simple actions can be coded in Jelly script too! Though typically most complex logic and models (such as TableModel, TreeModel) should be written in Java code. Then Jelly script can be used to create the view and bind in the models. |