| 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  | CheckboxA check box is a graphical component that can be in either an
 "on" ( true) or "off" (false) state. | 
| class  | CheckboxMenuItemThis class represents a check box that can be included in a menu. | 
| class  | ChoiceThe  Choiceclass presents a pop-up menu of choices. | 
| class  | ListThe  Listcomponent 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  ItemEventobject. | 
| Modifier and Type | Interface and Description | 
|---|---|
| interface  | ButtonModelState model for buttons. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | AbstractButtonDefines common behaviors for buttons and menu items. | 
| class  | DefaultButtonModelThe default implementation of a  Buttoncomponent's data model. | 
| class  | JButtonAn implementation of a "push" button. | 
| class  | JCheckBoxAn implementation of a check box -- an item that can be selected or
 deselected, and which displays its state to the user. | 
| class  | JCheckBoxMenuItemA 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  | JMenuAn implementation of a menu -- a popup window containing
  JMenuItems that
 is displayed when the user selects an item on theJMenuBar. | 
| class  | JMenuItemAn implementation of an item in a menu. | 
| class  | JRadioButtonAn implementation of a radio button -- an item that can be selected or
 deselected, and which displays its state to the user. | 
| class  | JRadioButtonMenuItemAn implementation of a radio button menu item. | 
| class  | JToggleButtonAn implementation of a two-state button. | 
| static class  | JToggleButton.ToggleButtonModelThe ToggleButton model | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | BasicArrowButtonJButton object that draws a scaled Arrow in one of the cardinal directions. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | MetalComboBoxButtonJButton subclass to help out MetalComboBoxUI | 
| class  | MetalScrollButtonJButton 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, 2015, Oracle and/or its affiliates.  All rights reserved.