Content![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
SimpleSwingFormSimpleSwingForm is a component designed to the simplification of building the Swing forms.
Here is a simple example of SimpleSwingForm usage: SimpleSwingForm form = new SimpleSwingForm (); form.addLabeledComponent ("Label 1", form.createTextField ()); form.addLabeledComponent ("Label 2", new JTextArea ()); Action okAction = new MyOkAction (); // you must do something on OK form.showDialog ("My form", okAction, form.createStandardCancelAction ()); This builds on the 5 lines of code a two-rows form with labels "Label 1" and "Label 2" in the first column and components text field and text area in the second. Then is the form displayed in a dialog.
|