SwixNG - The XML GUI Engine (original) (raw)
About
SwixNG eases up Java development by letting you define the GUI of your application in plain XML. For example, take the following code to create a simple frame:
JFrame frame = new JFrame("My Application"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JPanel panel = new Panel(); panel.setLayout(new BorderLayout()); panel.add(new Button("Click Me!"), BorderLayout.SOUTH);
frame.add(panel);
This XML code will get you the very same result:
See the Examples Page for an in-depth view on the capabilities of SwixNG. This project is based on the source code of SwiXml 1.2 build 140, and thus in big parts compatible to this system. A guideline on converting a SwiXml project to SwixNG can be found in the Section Switching from SwiXml.
Project Goals
The goal of SwixNG to provide Java developers with an easy way to define their GUI. We want to minimize the restrictions a developer typically has with engines of this type, like limited support for Localization, Widget sets and 3rd party components.
Status
Following features are working with the currently available version of SwixNG:
- Swing widget set support (AWT and SWT support is planned)
- On-the-fly localization of GUI and model classes
- Support for TableLayout
- Prepared to support 3rd party Widgets and Layouts
- Parametrized Actions and delegates
- XInclude and Plug-in able XML descriptors
License
SwixNG is released under Apache Software License 2.0, to be found here.