standup.utils
Class MySwingTools
java.lang.Object
standup.utils.MySwingTools
public class MySwingTools
- extends Object
A (very wee) collection of tools for setting up Swing interfaces.
- Author:
- Ruli Manurung
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MySwingTools
public MySwingTools()
addRadioButton
public static JRadioButton addRadioButton(String label,
ButtonGroup group,
JPanel panel,
ItemListener itemListener)
- Adds a
JRadioButton
with the given label to the given ButtonGroup
and JPanel, and registers the given ItemListener.
- Parameters:
label
- group
- panel
- itemListener
-
- Returns:
addCheckBox
public static JCheckBox addCheckBox(String label,
JPanel panel,
ItemListener itemListener)
- Adds a JCheckBox with the given label to the given panel, and registers
the given ItemListener.
- Parameters:
label
- panel
- itemListener
-
- Returns: