Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

Copyright © 2006 Sun Microsystems, Inc. All rights reserved.

JSR-209 (Final Approval Ballot)

Package javax.swing

Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.


Interface Summary
Action The Action interface provides a useful extension to the ActionListener interface in cases where the same functionality may be accessed by several controls.
BoundedRangeModel Defines the data model used by components like Sliders and ProgressBars.
ButtonModel State Model for buttons.
ComboBoxEditor The editor component used for JComboBox components.
ComboBoxModel A data model for a combo box.
Icon A small fixed size picture, typically used to decorate components.
JComboBox.KeySelectionManager The interface that defines a KeySelectionManager.
ListCellRenderer Identifies components that can be used as "rubber stamps" to paint the cells in a JList.
ListModel This interface defines the methods components like JList use to get the value of each cell in a list and the length of the list.
ListSelectionModel This interface represents the current state of the selection for any of the components that display a list of values with stable indices.
MenuElement Any component that can be placed into a menu should implement this interface.
MutableComboBoxModel A mutable version of ComboBoxModel.
Renderer Defines the requirements for an object responsible for "rendering" (displaying) a value.
RootPaneContainer This interface is implemented by components that have a single JInternalFrame.
Scrollable An interface that provides information to a scrolling container like JScrollPane.
ScrollPaneConstants Constants used with the JScrollPane component.
SingleSelectionModel A model that supports at most one indexed selection.
SpinnerModel A model for a potentially unbounded sequence of object values.
SwingConstants A collection of constants generally used for positioning and orienting components on the screen.
WindowConstants Constants used to control the window-closing operation.

Class Summary
AbstractAction This class provides default implementations for the JFC Action interface.
AbstractButton Defines common behaviors for buttons and menu items.
AbstractListModel The abstract definition for the data model that provides a List with its contents.
AbstractSpinnerModel This class provides the ChangeListener part of the SpinnerModel interface that should be suitable for most concrete SpinnerModel implementations.
ActionMap ActionMap provides mappings from Objects (called keys or Action names) to Actions.
BorderFactory Factory class for vending standard Border objects.
Box A lightweight container that uses a BoxLayout object as its layout manager.
Box.Filler An implementation of a lightweight component that participates in layout but has no view.
BoxLayout A layout manager that allows multiple components to be laid out either vertically or horizontally.
ButtonGroup This class is used to create a multiple-exclusion scope for a set of buttons.
ComponentInputMap A ComponentInputMap is an InputMap associated with a particular JComponent.
DefaultBoundedRangeModel A generic implementation of BoundedRangeModel.
DefaultButtonModel The default implementation of a Button component's data model.
DefaultComboBoxModel The default model for combo boxes.
DefaultListModel This class loosely implements the java.util.Vector API, in that it implements the 1.1.x version of java.util.Vector, has no collection class support, and notifies the ListDataListeners when changes occur.
DefaultListSelectionModel Default data model for list selections.
DefaultSingleSelectionModel A generic implementation of SingleSelectionModel.
GrayFilter An image filter that "disables" an image by turning it into a grayscale image, and brightening the pixels in the image.
ImageIcon An implementation of the Icon interface that paints Icons from Images.
InputMap InputMap provides a binding between an input event (currently only KeyStrokes are used) and an Object.
InputVerifier The purpose of this class is to help clients support smooth focus navigation through GUIs with text fields.
InternalFrameFocusTraversalPolicy A FocusTraversalPolicy which can optionally provide an algorithm for determining a JInternalFrame's initial Component.
JButton An implementation of a "push" button.
JCheckBox An implementation of a check box -- an item that can be selected or deselected, and which displays its state to the user.
JCheckBoxMenuItem A menu item that can be selected or deselected.
JComboBox A component that combines a button or editable field and a drop-down list.
JComponent The base class for all Swing components except top-level containers.
JDesktopPane A container used to create a multiple-document interface or a virtual desktop.
JEditorPane A text component to edit various kinds of content.
JFormattedTextField JFormattedTextField extends JTextField adding support for formatting arbitrary values, as well as retrieving a particular object once the user has edited the text.
JFormattedTextField.AbstractFormatter Instances of AbstractFormatter are used by JFormattedTextField to handle the conversion both from an Object to a String, and back from a String to an Object.
JFormattedTextField.AbstractFormatterFactory Instances of AbstractFormatterFactory are used by JFormattedTextField to obtain instances of AbstractFormatter which in turn are used to format values.
JFrame An extended version of java.awt.Frame that adds support for the JFC/Swing component architecture.
JInternalFrame A lightweight object that provides many of the features of a native frame, including dragging, closing, becoming an icon, resizing, title display, and support for a menu bar.
JLabel A display area for a short text string or an image, or both.
JLayeredPane JLayeredPane adds depth to a JFC/Swing container, allowing components to overlap each other when needed.
JList A component that allows the user to select one or more objects from a list.
JMenu An implementation of a menu -- a popup window containing JMenuItems that is displayed when the user selects an item on the JMenuBar.
JMenuBar An implementation of a menu bar.
JMenuItem An implementation of an item in a menu.
JOptionPane JOptionPane makes it easy to pop up a standard dialog box that prompts users for a value or informs them of something.
JPanel JPanel is a generic lightweight container.
JPasswordField JPasswordField is a lightweight component that allows the editing of a single line of text where the view indicates something was typed, but does not show the original characters.
JPopupMenu An implementation of a popup menu -- a small window that pops up and displays a series of choices.
JProgressBar A component that, by default, displays an integer value within a bounded interval.
JRadioButton An implementation of a radio button -- an item that can be selected or deselected, and which displays its state to the user.
JRadioButtonMenuItem An implementation of a radio button menu item.
JRootPane A lightweight container used behind the scenes by JInternalFrame.
JScrollBar An implementation of a scrollbar.
JScrollPane Provides a scrollable view of a lightweight component.
JSeparator JSeparator provides a general purpose component for implementing divider lines - most commonly used as a divider between menu items that breaks them up into logical groupings.
JSlider A component that lets the user graphically select a value by sliding a knob within a bounded interval.
JSpinner A single line input field that lets the user select a number or an object value from an ordered sequence.
JSpinner.DateEditor An editor for a JSpinner whose model is a SpinnerDateModel.
JSpinner.DefaultEditor A simple base class for more specialized editors that displays a read-only view of the model's current value with a JFormattedTextField.
JSpinner.ListEditor An editor for a JSpinner whose model is a SpinnerListModel.
JSpinner.NumberEditor An editor for a JSpinner whose model is a SpinnerNumberModel.
JTabbedPane A component that lets the user switch between a group of components by clicking on a tab with a given title and/or icon.
JTable The JTable is used to display and edit regular two-dimensional tables of cells.
JTextArea A JTextArea is a multi-line area that displays plain text.
JTextField JTextField is a lightweight component that allows the editing of a single line of text.
JTextPane A text component that can be marked up with attributes that are represented graphically.
JToggleButton An implementation of a two-state button.
JToggleButton.ToggleButtonModel The ToggleButton model
JTree A control that displays a set of hierarchical data as an outline.
JTree.DynamicUtilTreeNode DynamicUtilTreeNode can wrap vectors/hashtables/arrays/strings and create the appropriate children tree nodes as necessary.
JTree.EmptySelectionModel EmptySelectionModel is a TreeSelectionModel that does not allow anything to be selected.
JViewport The "viewport" or "porthole" through which you see the underlying information.
KeyStroke A KeyStroke represents a key action on the keyboard, or equivalent input device.
LayoutFocusTraversalPolicy A SortingFocusTraversalPolicy which sorts Components based on their size, position, and orientation.
MenuSelectionManager A MenuSelectionManager owns the selection in menu hierarchy.
OverlayLayout A layout manager to arrange components over the top of each other.
ScrollPaneLayout The layout manager used by JScrollPane.
SortingFocusTraversalPolicy A FocusTraversalPolicy that determines traversal order by sorting the Components of a focus traversal cycle based on a given Comparator.
SpinnerDateModel A SpinnerModel for sequences of Dates.
SpinnerListModel A simple implementation of SpinnerModel whose values are defined by an array or a List.
SpinnerNumberModel A SpinnerModel for sequences of numbers.
Spring An instance of the Spring class holds three properties that characterize its behavior: the minimum, preferred, and maximum values.
SpringLayout A SpringLayout lays out the children of its associated container according to a set of constraints.
SpringLayout.Constraints A Constraints object holds the constraints that govern the way a component's size and position change in a container controlled by a SpringLayout.
SwingUtilities A collection of utility methods for Swing.
Timer Fires one or more action events after a specified delay.
ViewportLayout The default layout manager for JViewport.

Package javax.swing Description

Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms. For a programmer's guide to using these components, see Creating a GUI with JFC/Swing, a trail in The Java Tutorial. For other resources, see Related Documentation.

Related Documentation

For overviews, tutorials, examples, guides, and other documentation, please see:

JSR-209 (Final Approval Ballot)

Copyright © 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

For more information, please consult the JSR 209 specification.