Package javax.swing

Provides a collection of cross-platform user interface components.

Interface Summary

Action An action provides a convenient central point of control for some task that can be triggered by more than one control in a Swing user interface (for example, a menu item and a toolbar button).
BoundedRangeModel The data model that is used in components that display a range of values, like JProgressBar and JSlider.
ButtonModel The data model that is used in all kinds of buttons.
CellEditor Provides edit capabilities for components that display cells like JTable, JList and JTree.
ComboBoxEditor Provides edit capabilities for JComboBoxes.
ComboBoxModel The data model for JComboBox.
DesktopManager DesktopManagers are responsible for implementing the behaviours for the JInternalFrames that belong to JDesktopPanes.
Icon Defines the methods that an object must implement if it should be used as an icon in Swing.
JComboBox.KeySelectionManager Classes implementing this interface are responsible for matching key characters typed by the user with combo box's items.
ListCellRenderer Renders the cells of a JList.
ListModel The data model that is typically used in JList.
ListSelectionModel The model that is used in JList to define the selected/not-selected cells of that list.
MenuElement Defines the methods that any menu element in a JMenu must implement.
MutableComboBoxModel A data model used in JComboBoxes that keeps track of the components data and provides methods to insert and remove elements from it.
Renderer This interface is not used and exists only for compatibility.
RootPaneContainer Components that contain a single JRootPane as only child implement this interface, typically this is implemented by the Swing top-level containers.
Scrollable Defines the method that a component should implement to behave nicely in JScrollPanes.
ScrollPaneConstants Defines some constants that are used in JScrollPane and related components.
SingleSelectionModel A data model that is used in components that support at most one selected element, like JTabbedPane, JMenu and JPopupMenu.
SpinnerModel The data model that is used in JSpinners.
SwingConstants Defines constant values that are used throughout the Swing packages.
UIDefaults.ActiveValue Used for lazy instantiation of UIDefaults values so that they are not all loaded when a Swing application starts up, but only the values that are really needed.
UIDefaults.LazyValue Used for lazy instantiation of UIDefaults values so that they are not all loaded when a Swing application starts up, but only the values that are really needed.
WindowConstants Defines some constants that are used in Swing's top-level containers.

Class Summary

AbstractAction A base class for implementing the Action interface.
AbstractButton The purpose of this class is to serve as a facade over a number of classes which collectively represent the semantics of a button: the button's model, its listeners, its action, and its look and feel.
AbstractButton.AccessibleAbstractButton A Java Accessibility extension of the AbstractButton.
AbstractButton.ButtonChangeListener An extension of ChangeListener to be serializable.
AbstractCellEditor The abstract superclass for table and tree cells.
AbstractListModel AbstractListModel
AbstractSpinnerModel AbstractSpinnerModel
ActionMap
BorderFactory
Box A component that uses a BoxLayout as Layout Manager.
Box.AccessibleBox
Box.Filler A component that servers as a filler in BoxLayout controlled containers.
Box.Filler.AccessibleBoxFiller
BoxLayout A layout for swing components.
ButtonGroup DOCUMENT ME!
CellRendererPane The CellRendererPane's purpose is to paint the cells of JList, JTable and JTree.
CellRendererPane.AccessibleCellRendererPane AccessibleCellRendererPane
ComponentInputMap
DebugGraphics DebugGraphics
DefaultBoundedRangeModel A default implementation of BoundedRangeModel.
DefaultButtonModel The pUrpose of this class is to model the dynamic state of an abstract button.
DefaultCellEditor DefaultCellEditor
DefaultCellEditor.EditorDelegate EditorDelegate
DefaultComboBoxModel DefaultComboBoxModel is a data model for JComboBox.
DefaultDesktopManager DefaultDesktopManager is the default implementation of DesktopManager for swing.
DefaultFocusManager DefaultFocusManager
DefaultListCellRenderer DefaultListCellRenderer.
DefaultListCellRenderer.UIResource
DefaultListModel This is a default subclass of the AbstractListModel, used by JList and similar objects as the model of a list of values.
DefaultListSelectionModel This class provides a default implementation of ListSelectioModel, which is used by JList and similar classes to manage the selection status of a number of data elements.
DefaultSingleSelectionModel DefaultSingleSelectionModel
FocusManager FocusManager
GrayFilter
ImageIcon
ImageIcon.AccessibleImageIcon Accessibility support for ImageIcon.
InputMap
InputVerifier InputVerifier
InternalFrameFocusTraversalPolicy
JApplet
JButton An instance of JButton can be added to a panel, frame etc
JCheckBox An instance of JCheckbox can be added to a panel, frame etc
JCheckBoxMenuItem This class represents JCheckBoxMenuItem.
JCheckBoxMenuItem.AccessibleJCheckBoxMenuItem
JColorChooser The JColorChooser is a Swing widget that offers users different ways to select a color.
JColorChooser.AccessibleJColorChooser AccessibleJColorChooser
JComboBox JComboBox.
JComboBox.AccessibleJComboBox AccessibleJComboBox
JComponent Every component in swing inherits from this class (JLabel, JButton, etc).
JComponent.AccessibleJComponent
JComponent.AccessibleJComponent.AccessibleContainerHandler
JComponent.AccessibleJComponent.AccessibleFocusHandler
JDesktopPane JDesktopPane is a container (usually for JInternalFrames) that simulates a desktop.
JDesktopPane.AccessibleJDesktopPane AccessibleJDesktopPane
JDialog Unlike JComponent derivatives, JDialog inherits from java.awt.Dialog.
JEditorPane
JFileChooser DOCUMENT ME!
JFormattedTextField
JFormattedTextField.AbstractFormatter
JFormattedTextField.AbstractFormatterFactory
JFrame Unlike JComponent derivatives, JFrame inherits from java.awt.Frame.
JInternalFrame This class implements a Swing widget that looks and acts like a native frame.
JInternalFrame.AccessibleJInternalFrame DOCUMENT ME!
JInternalFrame.JDesktopIcon This class represents the JInternalFrame while it is iconified.
JInternalFrame.JDesktopIcon.AccessibleJDesktopIcon DOCUMENT ME!
JLabel A swing widget that displays a text message and/or an icon.
JLayeredPane The "Layered Pane" is a container which divides its children into 6 (or more) disjoint sets. the pre-defined sets are:
  • "Frame Content"
  • "Default"
  • "Palette"
  • "Modal"
  • "Popup"
  • "Drag"

A child is in exactly one of these layers at any time, though there may be other layers if someone creates them.

The purpose of this class is to translate this view of "layers" into a contiguous array of components: the one held in our ancestor, Container.

There is a precise set of words we will use to refer to numbers within this class:

Component Index:
An offset into the component array held in our ancestor, Container, from [0 .. component.length).
JList This class is a facade over three separate objects: ListModel, ListSelectionModel and ListUI.
JMenu This class represents a menu that can be added to a menu bar or can be a submenu in some other menu.
JMenu.AccessibleJMenu
JMenu.ActionChangedListener This class listens to PropertyChangeEvents occuring in menu's action
JMenu.WinListener
JMenuBar JMenuBar is a container for menu's.
JMenuItem JMenuItem represents element in the menu.
JMenuItem.AccessibleJMenuItem
JOptionPane This class creates different types of JDialogs and JInternalFrames that can ask users for input or pass on information.
JOptionPane.AccessibleJOptionPane DOCUMENT ME!
JPanel An instance of JPanel can be added to a panel, frame etc
JPasswordField class JPasswordField
JPasswordField.AccessibleJPasswordField AccessibleJPasswordField
JPopupMenu JPopupMenu is a container that is used to display popup menu's menu items.
JPopupMenu.AccessibleJPopupMenu
JPopupMenu.ActionChangeListener
JPopupMenu.Separator This is the separator that can be used in popup menu.
JProgressBar The ProgressBar is a widget that displays in two modes.
JProgressBar.AccessibleJProgressBar AccessibleJProgressBar
JRadioButton The JRadioButton component provides a visually selectable button with mutually exclusive behaviour within a ButtonGroup.
JRadioButton.AccessibleJRadioButton This class provides accessibility support for the toggle button.
JRadioButtonMenuItem This class represents JRadioButtonMenuItem.
JRadioButtonMenuItem.AccessibleJRadioButtonMenuItem
JRootPane This class is where JComponents are added to.
JRootPane.AccessibleJRootPane
JRootPane.RootLayout
JScrollBar The JScrollBar.
JScrollBar.AccessibleJScrollBar DOCUMENT ME!
JScrollPane A component that embeds another component and enables it to be scrolled both in horizontal and vertical direction.
JScrollPane.ScrollBar
JSeparator The JSeparator.
JSeparator.AccessibleJSeparator AccessibleJSeparator
JSlider The JSlider is a Swing component that allows selection of a value within a range by adjusting a thumb in a track.
JSlider.AccessibleJSlider DOCUMENT ME!
JSpinner A JSpinner is a component which typically contains a numeric value and a way to manipulate the value.
JSpinner.DateEditor An editor class for a JSpinner that is used for displaying and editing dates (e.g. that uses SpinnerDateModel as model).
JSpinner.DefaultEditor DOCUMENT ME!
JSpinner.NumberEditor DOCUMENT ME!
JSplitPane This class implements JSplitPane.
JSplitPane.AccessibleJSplitPane DOCUMENT ME!
JTabbedPane This is a container for components.
JTabbedPane.AccessibleJTabbedPane DOCUMENT ME!
JTabbedPane.ModelListener A helper class that listens for changes to the model.
JTable
JTextArea The JTextArea component provides a multi-line area for displaying and editing plain text.
JTextField
JTextField.AccessibleJTextField AccessibleJTextField
JTextPane JTextPane
JToggleButton The JToggleButton component provides a stateful button, which can be either selected or unselected.
JToggleButton.AccessibleJToggleButton This class provides accessibility support for the toggle button.
JToggleButton.ToggleButtonModel The model handles the storage and maintenance of the state of the toggle button.
JToolBar JToolBar is a component that provides a toolbar to Swing programs.
JToolBar.AccessibleJToolBar AccessibleJToolBar
JToolBar.Separator This is an extension of JSeparator used in toolbars.
JToolTip This class is used to display ToolTips.
JToolTip.AccessibleJToolTip DOCUMENT ME!
JTree
JTree.DynamicUtilTreeNode
JTree.EmptySelectionModel A TreeModel that does not allow anything to be selected.
JTree.TreeModelHandler Listens to the model of the JTree and updates the property expandedState if nodes are removed or changed.
JTree.TreeSelectionRedirector This redirects TreeSelectionEvents and rewrites the source of it to be this JTree.
JViewport
                                                     _
   +-------------------------------+    ...........Y1 \
   |  view                         |                .  
JViewport.ViewListener A ComponentListener that listens for changes of the view's size.
JWindow Unlike JComponent derivatives, JWindow inherits from java.awt.Window.
KeyStroke
LayoutFocusTraversalPolicy
LookAndFeel
MenuSelectionManager This class manages current menu selectection.
OverlayLayout OverlayLayout
Popup Manages a popup window that displays a Component on top of everything else.
PopupFactory A factory for Popup objects.
ProgressMonitor ProgressMonitor
ProgressMonitorInputStream ProgressMonitorInputStream
RepaintManager The repaint manager holds a set of dirty regions, invalid components, and a double buffer surface.
RepaintManager.RepaintWorker A helper class which is placed into the system event queue at various times in order to facilitate repainting and layout.
ScrollPaneLayout ScrollPaneLayout
ScrollPaneLayout.UIResource
SizeRequirements This class calculates information about the size and position requirements of components.
SizeSequence SizeSequence
SortingFocusTraversalPolicy
SpinnerDateModel SpinnerDateModel Implements a SpinnerModel for dates, rotating a calendar field such as month, year, day, week, hour, minute.
SpinnerListModel An implementation of SpinnerModel which uses the values contained within a list or an array.
SpinnerNumberModel SpinnerNumberModel
Spring Calculates the space between component edges, that are layed out by SpringLayout.
SpringLayout A very flexible layout manager.
SpringLayout.Constraints The constraints that define the relationships between components.
SwingUtilities This class contains a number of static utility functions which are useful when drawing swing components, dispatching events, or calculating regions which need painting.
Timer Fires one or more action events after the specified delay.
ToolTipManager This class is responsible for the registration of JToolTips to Components and for displaying them when appropriate.
ToolTipManager.insideTimerAction This ActionListener is associated with the Timer that listens to whether it is time for the JToolTip to be displayed after the mouse has entered the JComponent.
ToolTipManager.outsideTimerAction This Actionlistener is associated with the Timer that listens to whether the mouse cursor has re-entered the JComponent in time for an immediate redisplay of the JToolTip.
ToolTipManager.stillInsideTimerAction This ActionListener is associated with the Timer that listens to whether the JToolTip can be hidden after four seconds.
TransferHandler
UIDefaults UIDefaults is a database where all settings and interface bindings are stored into.
UIDefaults.LazyInputMap
UIDefaults.ProxyLazyValue
UIManager
UIManager.LookAndFeelInfo
ViewportLayout ViewportLayout

Exception Summary

UnsupportedLookAndFeelException
Provides a collection of cross-platform user interface components.