1  /*
     2   Copyright aswing.org, see the LICENCE.txt.
     3  */
     4   
     5  import org.aswing.*;
     6  
     7  /**
     8   * An implementation of a radio button -- an item that can be selected or
     9   * deselected, and which displays its state to the user.
    10   * Used with a {@link ButtonGroup} object to create a group of buttons
    11   * in which only one button at a time can be selected. (Create a ButtonGroup
    12   * object and use its <code>append</code> method to include the JRadioButton objects
    13   * in the group.)
    14   * <blockquote>
    15   * <strong>Note:</strong>
    16   * The ButtonGroup object is a logical grouping -- not a physical grouping.
    17   * Tocreate a button panel, you should still create a {@link JPanel} or similar
    18   * container-object and add a {@link org.aswing.border.Border} to it to set it off from surrounding
    19   * components.
    20   * </blockquote>
    21   * @author iiley
    22   */
    23  class org.aswing.JRadioButton extends JToggleButton{
    24  	
    25  	public function JRadioButton(text:String, icon:Icon) {
    26  		super(text, icon);
    27  		setName("JRadioButton");
    28  		updateUI();
    29  	}
    30      
    31  	public function getUIClassID():String{
    32  		return "RadioButtonUI";
    33  	}
    34  }
    35