Contents | Package | Class | Tree | Deprecated | Index | Help | Java 1.2 Beta 3 | ||
PREV | NEXT | SHOW LISTS | HIDE LISTS |
java.lang.Object | +----java.awt.Component | +----java.awt.Container | +----java.awt.swing.JComponent | +----java.awt.swing.AbstractButton | +----java.awt.swing.JToggleButton
JRadioButton
and JCheckbox
classes
are subclasses of this class.
Warning: serialized objects of this class will not be compatible with future swing releases. The current serialization support is appropriate for short term storage or RMI between Swing1.0 applications. It will not be possible to load serialized Swing1.0 objects with future releases of Swing. The JDK1.2 release of Swing will be the compatibility baseline for the serialized form of Swing objects.
Inner Class Summary | |
JToggleButton.AccessibleJToggleButton
|
|
static | JToggleButton.ToggleButtonModel
Warning: serialized objects of this class will not be compatible with future swing releases. |
Inner classes inherited from class java.awt.swing.AbstractButton |
AbstractButton.AccessibleAbstractButton, AbstractButton.ButtonChangeListener |
Inner classes inherited from class java.awt.swing.JComponent |
JComponent.AccessibleJComponent |
Fields inherited from class java.awt.swing.AbstractButton |
actionListener, changeEvent, changeListener, itemListener, model |
Fields inherited from class java.awt.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Constructor Summary | |
JToggleButton()
|
|
JToggleButton(Icon icon)
|
|
JToggleButton(Icon icon,
boolean selected)
|
|
JToggleButton(String text)
|
|
JToggleButton(String text,
boolean selected)
|
|
JToggleButton(String text,
Icon icon)
|
|
JToggleButton(String text,
Icon icon,
boolean selected)
|
Method Summary | |
AccessibleContext | getAccessibleContext()
|
String | getUIClassID()
|
void | updateUI()
|
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, addNotify, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setLayout, update, validate, validateTree |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JToggleButton()
public JToggleButton(Icon icon)
icon
- the image that the button should display
public JToggleButton(Icon icon, boolean selected)
icon
- the image that the button should display
selected
- if true, the button is initially selected;
otherwise, the button is initially unselected
public JToggleButton(String text)
text
- the string displayed on the toggle button
public JToggleButton(String text, boolean selected)
text
- the string displayed on the toggle button
selected
- if true, the button is initially selected;
otherwise, the button is initially unselected
public JToggleButton(String text, Icon icon)
text
- the string displayed on the button
icon
- the image that the button should display
public JToggleButton(String text, Icon icon, boolean selected)
text
- the text of the toggle button.
selected
- if true, the button is initially selected;
otherwise, the button is initially unselected
Method Detail |
public void updateUI()
public String getUIClassID()
public AccessibleContext getAccessibleContext()
Contents | Package | Class | Tree | Deprecated | Index | Help | Java 1.2 Beta 3 | ||
PREV | NEXT | SHOW LISTS | HIDE LISTS |