standup.utils
Class MySwingTools

java.lang.Object
  extended by standup.utils.MySwingTools

public class MySwingTools
extends Object

A (very wee) collection of tools for setting up Swing interfaces.

Author:
Ruli Manurung

Constructor Summary
MySwingTools()
           
 
Method Summary
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.
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MySwingTools

public MySwingTools()
Method Detail

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: