public class LabeledComponentGroup extends Object
LabledComponentGroup:
LabeledComponentGroup with two buttons:
JToggleButton leftButton = new JToggleButton("Left Button");
leftButton.putClientProperty("JButton.buttonType", "segmentedTextured");
leftButton.putClientProperty("JButton.segmentPosition", "first");
JToggleButton rightButton = new JToggleButton("Right Button");
rightButton.putClientProperty("JButton.buttonType", "segmentedTextured");
rightButton.putClientProperty("JButton.segmentPosition", "last");
LabeledComponentGroup group = new LabeledComponentGroup("Group", leftButton, rightButton);
| Constructor and Description |
|---|
LabeledComponentGroup(String labelString,
JComponent... components)
Creates a labeled component group using the given label and components.
|
LabeledComponentGroup(String labelString,
List<JComponent> components)
Creates a labeled component group using the given label and components.
|
public LabeledComponentGroup(String labelString, JComponent... components)
labelString - the label of the group.components - the components in the group.public LabeledComponentGroup(String labelString, List<JComponent> components)
labelString - the label of the group.components - the components in the group.public JComponent getComponent()