Package javax.swing

Provides a collection of cross-platform user interface components.

Interface Summary

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 represents a range that is constrained to fit within specified bounds.
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 Provides an abstract implementation of common button behaviour, data model and look & feel.
AbstractButton.AccessibleAbstractButton A Java Accessibility extension of the AbstractButton.
AbstractButton.ButtonChangeListener An extension of ChangeListener to be serializable.
AbstractCellEditor An abstract superclass for table and tree cell editors.
AbstractListModel Provides standard implementations of some methods in ListModel.
AbstractSpinnerModel Provides standard implementations for some of the methods in SpinnerModel.
ActionMap Maps arbitrary keys (usually Strings) to Action instances.
BorderFactory A factory for commonly used borders.
Box A component that uses a BoxLayout as Layout Manager.
Box.AccessibleBox Provides accessibility support for Boxes.
Box.Filler A component that servers as a filler in BoxLayout controlled containers.
Box.Filler.AccessibleBoxFiller Provides accessibility support for Box.Filler.
BoxLayout A layout that stacks the children of a container in a Box, either horizontally or vertically.
ButtonGroup Logically groups a set of buttons, so that only one of the buttons in a ButtonGroup can be selected at the same time.
CellRendererPane Paints the cells of JList, JTable and JTree.
CellRendererPane.AccessibleCellRendererPane Provides accessibility support for CellRendererPanes.
ComponentInputMap An InputMap that is associated with a particular JComponent.
DebugGraphics An extension of Graphics that can be used for debugging custom Swing widgets.
DefaultBoundedRangeModel The default implementation of BoundedRangeModel.
DefaultButtonModel The default implementation of ButtonModel.
DefaultCellEditor The default implementation of TableCellEditor and TreeCellEditor.
DefaultCellEditor.EditorDelegate Delegates a couple of method calls (such as isCellEditable(EventObject) to the component it contains and listens for events that indicate that editing has stopped.
DefaultComboBoxModel A model that stores a list of elements and a selected item (which may be null).
DefaultDesktopManager The default implementation of DesktopManager for Swing.
DefaultFocusManager This class has been obsoleted by the new KeyboardFocusManager and DefaultKeyboardFocusManager API.
DefaultListCellRenderer The default implementation ListCellRenderer.
DefaultListCellRenderer.UIResource Subclasses DefaultListCellRenderers and implements UIResource.
DefaultListModel The default implementation of AbstractListModel, used by JList and similar objects as the model of a list of values.
DefaultListSelectionModel The default implementation of ListSelectionModel, which is used by JList and similar classes to manage the selection status of a number of data elements.
DefaultSingleSelectionModel The default implementation of SingleSelectionModel, used in JTabbedPane, JMenuBar and JPopupMenu.
FocusManager This class has been obsoleted by the new KeyboardFocusManager and DefaultKeyboardFocusManager API.
GrayFilter Produces grayscale images out of colored images.
ImageIcon An Icon implementation that is backed by an Image.
ImageIcon.AccessibleImageIcon Accessibility support for ImageIcon.
InputMap Maps KeyStrokes to arbitrary objects, usually Strings.
InputVerifier Verifies the user input on a component before the focus is shifted.
InternalFrameFocusTraversalPolicy A FocusTraversalPolicy that provides the additional capability to determine a JInternalFrame's initially focused component when it is selected.
JApplet A top-level container that is usually used in web browsers.
JApplet.AccessibleJApplet Provides accessibility support for JApplet.
JButton A general purpose push button.
JButton.AccessibleJButton Accessibility support for JButtons.
JCheckBox A small box that displays a check or not, depending on it's selected state.
JCheckBox.AccessibleJCheckBox Provides accessibility support for JCheckBox.
JCheckBoxMenuItem A menu item that displays a checkbox.
JCheckBoxMenuItem.AccessibleJCheckBoxMenuItem Accessibility support for JCheckBoxMenuItem.
JColorChooser A Swing widget that offers users different ways to select a color.
JColorChooser.AccessibleJColorChooser Accessibility support for JColorChooser.
JComboBox A component that allows a user to select any item in its list and displays the selected item to the user.
JComboBox.AccessibleJComboBox Accessibility support for JComboBox.
JComponent The base class of all Swing components.
JComponent.AccessibleJComponent Basic accessibility support for JComponent derived widgets.
JComponent.AccessibleJComponent.AccessibleContainerHandler Accessibility support for JComponent's container handler.
JComponent.AccessibleJComponent.AccessibleFocusHandler Accessibility support for JComponent's focus handler.
JDesktopPane JDesktopPane is a container (usually for JInternalFrames) that simulates a desktop.
JDesktopPane.AccessibleJDesktopPane AccessibleJDesktopPane
JDialog A dialog window.
JDialog.AccessibleJDialog Provides accessibility support for JDialogs.
JEditorPane A powerful text editor component that can handle different types of content.
JEditorPane.AccessibleJEditorPane Provides accessibility support for JEditorPane.
JEditorPane.AccessibleJEditorPaneHTML Provides accessibility support for JEditorPanes, when the editor kit is an instance of HTMLEditorKit.
JEditorPane.JEditorPaneAccessibleHypertextSupport This is the accessible text that is returned by JEditorPane.AccessibleJEditorPaneHTML.getAccessibleText().
JEditorPane.JEditorPaneAccessibleHypertextSupport.HTMLLink The accessible representation of a HTML link.
JFileChooser A component that provides the user a dialog box to browse through a filesystem and choose one or more files or directories.
JFileChooser.AccessibleJFileChooser Accessibility support for JFileChooser
JFormattedTextField A text field that makes use of a formatter to display and edit a specific type of data.
JFormattedTextField.AbstractFormatter An abstract base implementation for a formatter that can be used by a JTextField.
JFormattedTextField.AbstractFormatterFactory Delivers instances of an JFormattedTextField.AbstractFormatter for a specific value type for a JFormattedTextField.
JFrame A window that supports window decorations (titlebar and borders).
JFrame.AccessibleJFrame Provides accessibility support for JFrames.
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.
JLabel.AccessibleJLabel Accessibility support for JLabel.
JLayeredPane A container that adds depth to the usual Container semantics.
JLayeredPane.AccessibleJLayeredPane Provides accessibility support for JLayeredPane.
JList This class is a facade over three separate objects: ListModel, ListSelectionModel and ListUI.
JList.AccessibleJList Provides accessibility support for JList.
JList.AccessibleJList.AccessibleJListChild Provides accessibility support for list elements in JLists.
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.
JMenuBar.AccessibleJMenuBar Provides accessibility support for JMenuBar.
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
JPanel.AccessibleJPanel Provides accessibility support for JPanel.
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.AccessibleJScrollPane Provides accessibility support for the JScrollPane.
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.ListEditor A JSpinner editor used for the SpinnerListModel.
JSpinner.NumberEditor DOCUMENT ME!
JSplitPane This class implements JSplitPane.
JSplitPane.AccessibleJSplitPane DOCUMENT ME!
JTabbedPane This is a container for components where only one component is displayed at a given time and the displayed component can be switched by clicking on tabs.
JTabbedPane.AccessibleJTabbedPane Accessibility support for JTabbedPane.
JTabbedPane.ModelListener A helper class that listens for changes to the model.
JTable
JTable.AccessibleJTable Provides accessibility support for JTable.
JTable.AccessibleJTable.AccessibleJTableCell Provides accessibility support for table cells.
JTable.AccessibleJTable.AccessibleJTableModelChange
JTextArea The JTextArea component provides a multi-line area for displaying and editing plain text.
JTextArea.AccessibleJTextArea Provides accessibility support for JTextArea.
JTextField
JTextField.AccessibleJTextField AccessibleJTextField
JTextPane A powerful text component that supports styled content as well as embedding images and components.
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.AccessibleJTree This class implements accessibility support for the JTree class.
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.
JTree.AccessibleJTree.AccessibleJTreeNode This class implements accessibility support for the JTree child.
JViewport
                                                     _
   +-------------------------------+    ...........Y1 \
   |  view                         |                .  
JViewport.AccessibleJViewport Provides accessibility support for JViewport.
JViewport.ViewListener A ComponentListener that listens for changes of the view's size.
JWindow Unlike JComponent derivatives, JWindow inherits from java.awt.Window.
JWindow.AccessibleJWindow Provides accessibility support for JWindow.
KeyStroke
LayoutFocusTraversalPolicy
LookAndFeel
MenuSelectionManager This class manages current menu selectection.
OverlayLayout A layout manager that lays out the components of a container one over another.
Popup Manages a popup window that displays a Component on top of everything else.
PopupFactory A factory for Popup objects.
ProgressMonitor Using this class you can easily monitor tasks where you cannot estimate the duration exactly.

A ProgressMonitor instance waits until the first time setProgress is called.

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 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 Manages the current LookAndFeel and any auxiliary LookAndFeel instances.
UIManager.LookAndFeelInfo Represents the basic information about a LookAndFeel (LAF), so that a list of installed LAFs can be presented without actually loading the LAF class(es).
ViewportLayout ViewportLayout

Exception Summary

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