||: Product by OOP-Research
||: Documentation written by OOP-Research
||: Patch for the other vendor's system
By this Java Swing GUI builder, Java Swing GUI can be written in XML. And JFrame, JDialog or JPanel with JComponents can be generated from the XML.
XMLPanelEdit consists of:
- Java Swing GUI builder
- Abstract Java classes
Java Swing GUI builder included in XMLPanelEdit is the XML editor, by which you can write the JFC Swing GUI in XML.
View Full image
By this XML editor, you can easily define the nested structure of your Java Swing GUI in XML.
JPanel on JFrame or JDialog can have any LayoutManager, i.e. FlowLayout, BorderLayout, BoxLayout and GridLayout.
By LayoutManager, anywhere you like within JFrame or JDialog, you can place JButton, JCheckBox, JRadioButton, JLable, JTextField, JSlider or any other JComponents.
The Java components can be placed on the intermediate Swing containers, such as JTabbedPane, JSplitPane and JScrollPane.
For example, JTable, JTree, JTextArea or JTextPane can be placed on JScrollPane.
When BorderLayout is specified as the LayoutManager, floatable JToolBar with Actions can be placed on JPanel, and JMenuItems with the same Actions can be embed into JMenu.
You can prepare XML for your Java Swing GUI in as many human languages as you like, i.e. XML for your Swing GUI can be written in Japanese Shift_JIS, Chinese BIG5, Chinese GB2312 and Russian KOI8-R.
By ResourceBundle read from the property resource file, the XML appropriate for the user's Locale will be selected at runtime.
By this way, your Java Swing GUI can be ready for internationalization (i18n).
The abstract Java classes in XMLPanelEdit represent JFrame, JDialog and JPanel. These Java classes parse the XML written by Swing GUI builder and generate your Java Swing GUI at runtime. And your Java Swing GUI can access all the JComponents placed on it. For example, ActionListener can be added into JButton on JDialog. Or Actions on JToolBar and their corresponding JMenuItems on JMenu can be enabled/disabled at the same time.
This Java Swing example shows JToolBar with Actions on BorderLayout. The Action on JToolBar can be embed into JMenuItem on JMenu. And both of JButton on JToolBar and JMenuItem on JMenu can be toggled at the same time.
In this Java Swing GUI example, we will build some very simple text editor.
When the user modifies the text on JTextArea, JButton for saving the file should be activated.
And we'd like to place this interactive JButton both on JToolBar and JMenuItem.
To make it possible, we will allocate the same Action to JToolBar and JMenuItem.
By enabling and disabling the single Action instance, JButton on JToolBar and its corresponding JMenuItem can be toggled at the same time.
JToolBar should be placed on JPanel with BorderLayout.
And to be notified of the modification in JTextArea, DocumentListener should be added into Document of the JTextArea.
This Java Swing example also shows the internationalization (i18n) of JFC Swing GUI by ResourceBundle read from the property resource file.
Java Swing example for JApplet by Java Swing GUI Tool. Floatable JToolBar can be placed on BorderLayout with Action. The JMenuItems on JMenu are enabled/disabled along with JButtons on JToolBar.
For example, when the user modifies the text on JTextArea, JButton for saving the file should be activated on JToolBar. At the same time, the JMenuItem for saving the file will also be activated in JMenu.
To be notified of the modification in JTextArea, DocumentListener should be added into Document of the JTextArea.
This example uses XMLPanelEdit. XMLPanelEdit consists of Java Swing GUI tool (Java Swing GUI builder) and abstract Java classes. Java Swing GUI tool included in XMLPanelEdit is the XML editor for representing the JFC Swing GUI in XML.
The typical Java Swing GUI has a series of JTextField along with their corresponding JLabel. By GridLayout and BoxLayout, you can place these pairs of JTextField and JLabel aligned gracefully. This example shows how to use GridLayout and BoxLayout.
This example uses XMLPanelEdit. XMLPanelEdit consists of Java Swing GUI tool (Java Swing GUI builder) and abstract Java classes. Java Swing GUI tool included in XMLPanelEdit is the XML editor, by which you can define the nested structure of your Java Swing GUI in XML. By this XML editor, you can specify any LayoutManager on JPanel, JFrame or JDialog, i.e. you can select FlowLayout, BorderLayout, BoxLayout or GridLayout.
All the APIs for Servlet/JSP introduced by this web site are now included in Bento framework:
To download the APIs and source code examples, please visit the web site of Bento framework.
- Simpler than JSTL or Apache Struts
- MVC framework by HTML
- Input validation from CGI FORM
- Easy user authentication
- Easy localization (L10n)