Package | Description |
---|---|
java.awt |
Contains all of the classes for creating user
interfaces and for painting graphics and images.
|
java.awt.event |
Provides interfaces and classes for dealing with different
types of events fired by AWT components.
|
javax.swing |
Provides a set of "lightweight"
(all-Java language) components that,
to the maximum degree possible, work the same on all platforms.
|
javax.swing.plaf.basic |
Provides user interface objects built according to the
Basic look and feel.
|
javax.swing.plaf.metal |
Provides user interface objects built according to
the Java look and feel (once codenamed Metal),
which is the default look and feel.
|
Modifier and Type | Class and Description |
---|---|
class |
Checkbox
A check box is a graphical component that can be in either an
"on" (
true ) or "off" (false ) state. |
class |
CheckboxMenuItem
This class represents a check box that can be included in a menu.
|
class |
Choice
The
Choice class presents a pop-up menu of choices. |
class |
List
The
List component presents the user with a
scrolling list of text items. |
Modifier and Type | Method and Description |
---|---|
ItemSelectable |
ItemEvent.getItemSelectable ()
Returns the originator of the event.
|
Constructor and Description |
---|
ItemEvent (ItemSelectable source,
int id,
Object item,
int stateChange)
Constructs an
ItemEvent object. |
Modifier and Type | Interface and Description |
---|---|
interface |
ButtonModel
State model for buttons.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractButton
Defines common behaviors for buttons and menu items.
|
class |
DefaultButtonModel
The default implementation of a
Button component's data model. |
class |
JButton
An implementation of a "push" button.
|
class |
JCheckBox
An implementation of a check box -- an item that can be selected or
deselected, and which displays its state to the user.
|
class |
JCheckBoxMenuItem
A menu item that can be selected or deselected.
|
class |
JComboBox<E>
A component that combines a button or editable field and a drop-down list.
|
class |
JMenu
An implementation of a menu -- a popup window containing
JMenuItem s that
is displayed when the user selects an item on the JMenuBar . |
class |
JMenuItem
An implementation of an item in a menu.
|
class |
JRadioButton
An implementation of a radio button -- an item that can be selected or
deselected, and which displays its state to the user.
|
class |
JRadioButtonMenuItem
An implementation of a radio button menu item.
|
class |
JToggleButton
An implementation of a two-state button.
|
static class |
JToggleButton.ToggleButtonModel
The ToggleButton model
|
Modifier and Type | Class and Description |
---|---|
class |
BasicArrowButton
JButton object that draws a scaled Arrow in one of the cardinal directions.
|
Modifier and Type | Class and Description |
---|---|
class |
MetalComboBoxButton
JButton subclass to help out MetalComboBoxUI
|
class |
MetalScrollButton
JButton object for Metal scrollbar arrows.
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2020, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
Scripting on this page tracks web page traffic, but does not change the content in any way.