public class Forms extends Object
Modifier and Type | Method and Description |
---|---|
static JComponent |
border(Border border,
JComponent component) |
static JComponent |
border(String emptyBorderSpec,
JComponent component) |
protected static JComponent |
buildGroupedButtonBar(AbstractButton... buttons)
Builds and returns a button bar that consists of the given buttons.
|
static JComponent |
buttonBar(JComponent... buttons) |
static JComponent |
centered(JComponent component) |
static JComponent |
checkBoxBar(JCheckBox... checkBoxes)
Builds and returns a panel where the given check boxes are laid out
in a row.
|
static JComponent |
horizontal(String gapColSpec,
JComponent... components) |
static JComponent |
radioButtonBar(JRadioButton... radioButtons)
Builds and returns a panel where the given radio buttons are laid out
in a row.
|
static JComponent |
single(String columnSpec,
String rowSpec,
JComponent component) |
static JComponent |
vertical(String gapRowSpec,
JComponent... components) |
public static JComponent single(String columnSpec, String rowSpec, JComponent component)
public static JComponent centered(JComponent component)
public static JComponent border(Border border, JComponent component)
public static JComponent border(String emptyBorderSpec, JComponent component)
public static JComponent horizontal(String gapColSpec, JComponent... components)
public static JComponent vertical(String gapRowSpec, JComponent... components)
public static JComponent buttonBar(JComponent... buttons)
public static JComponent checkBoxBar(JCheckBox... checkBoxes)
If class com.jgoodies.jsdl.common.focus.FocusTraversalUtils
from the JSDL Common library is in the class path,
it is used to group the radio buttons. Focus is transferred to/from
the selected button in a group; and cursor-left/-right change
the selection in the group.
public static JComponent radioButtonBar(JRadioButton... radioButtons)
If class com.jgoodies.jsdl.common.focus.FocusTraversalUtils
from the JSDL Common library is in the class path,
it is used to group the radio buttons. Focus is transferred to/from
the selected button in a group; and cursor-left/-right change
the selection in the group.
protected static JComponent buildGroupedButtonBar(AbstractButton... buttons)
FocusTraversalUtils
,
if in the classpath.Copyright © 2013 JGoodies. All Rights Reserved.