charvax.swing
Class JRadioButton
- EventListener, ItemSelectable, KeyListener
public class JRadioButton
An implementation of a radiobutton - an item that is always in one of two
states (SELECTED or DESELECTED) and which displays its state to the user.
JRadioButtons are used with a ButtonGroup object to create a group of
buttons in which only one button at a time can be selected (Create a
ButtonGroup object and use its add() method to add the radio buttons to
it).
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT, _alignmentX, _alignmentY, _background, _cursesColor, _enabled, _focusListeners, _foreground, _keyListeners, _origin, _parent, _visible |
JRadioButton()- Create a new JRadioButton with an empty label.
|
JRadioButton(String text_)- Use this constructor when you want to initialize the value.
|
JRadioButton(String label_, boolean value_)- Use this constructor when you want to set both the label and the value.
|
addActionListener, addItemListener, doClick, fireActionPerformed, fireItemStateChanged, getActionCommand, getLabel, getLabelString, getMnemonic, getText, isSelected, keyPressed, keyReleased, keyTyped, processEvent, processMouseEvent, removeItemListener, setActionCommand, setLabel, setMnemonic, setSelected, setText |
addFocusListener, addKeyListener, contains, contains, debug, draw, getAlignmentX, getAlignmentY, getAncestorWindow, getBackground, getBounds, getCursesColor, getForeground, getHeight, getLocation, getLocationOnScreen, getName, getParent, getSize, getWidth, hasFocus, hide, invalidate, isDisplayed, isEnabled, isFocusTraversable, isTotallyObscured, isValid, isVisible, minimumSize, processEvent, processFocusEvent, processKeyEvent, processMouseEvent, repaint, requestFocus, requestSync, setBackground, setBounds, setBounds, setBounds, setEnabled, setForeground, setLocation, setLocation, setName, setParent, setVisible, show, validate, validateCursesColor |
JRadioButton
public JRadioButton()
Create a new JRadioButton with an empty label.
JRadioButton
public JRadioButton(String text_)
Use this constructor when you want to initialize the value.
JRadioButton
public JRadioButton(String label_,
boolean value_) Use this constructor when you want to set both the label and the value.
draw
public void draw()
Called by this JRadioButton's parent container.
- draw in interface JComponent
getSize
public Dimension getSize()
Return the size of the text field. Overrides the method in the
Component superclass.
- getSize in interface Component
toString
public String toString()