Uses of Package
javax.swing
Package
Description
This package contains the JConsole API.
Contains all of the classes for creating user interfaces and for painting
graphics and images.
Provides interfaces that enable the development of input methods that can be
used with any Java runtime environment.
Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
Provides classes and interface for drawing specialized borders around a Swing
component.
Contains classes and interfaces used by the
JColorChooser
component.Provides for events fired by Swing components.
Contains classes and interfaces used by the
JFileChooser
component.Provides one interface and many abstract classes that Swing uses to provide
its pluggable look-and-feel capabilities.
Provides user interface objects built according to the Basic look and feel.
Provides user interface objects built according to the Java look and feel
(once codenamed Metal), which is the default look and feel.
Provides user interface objects that combine two or more look and feels.
Provides user interface objects built according to the cross-platform Nimbus
look and feel.
Synth is a skinnable look and feel in which all painting is delegated.
Provides classes and interfaces for dealing with
javax.swing.JTable
.Provides classes and interfaces that deal with editable and noneditable text
components.
Provides the class
HTMLEditorKit
and supporting classes for creating
HTML text editors.Provides classes and interfaces for dealing with
javax.swing.JTree
.-
ClassDescription
JPanel
is a generic lightweight container.An abstract class to perform lengthy GUI-interaction tasks in a background thread. -
-
ClassDescriptionAn extended version of
java.awt.Frame
that adds support for the JFC/Swing component architecture. -
ClassDescriptionDefines common behaviors for buttons and menu items.This class implements accessibility support for the
AbstractButton
class.A base class forCellEditors
, providing default implementations for the methods in theCellEditor
interface exceptgetCellEditorValue()
.The abstract definition for the data model that provides aList
with its contents.This class provides the ChangeListener part of the SpinnerModel interface that should be suitable for most concrete SpinnerModel implementations.TheAction
interface provides a useful extension to theActionListener
interface in cases where the same functionality may be accessed by several controls.ActionMap
provides mappings fromObject
s (called keys orAction
names) toAction
s.Defines the data model used by components likeSlider
s andProgressBar
s.A lightweight container that uses a BoxLayout object as its layout manager.This class is used to create a multiple-exclusion scope for a set of buttons.State model for buttons.This interface defines the methods any general editor should be able to implement.The editor component used for JComboBox components.A data model for a combo box.AComponentInputMap
is anInputMap
associated with a particularJComponent
.The default implementation of aButton
component's data model.The protectedEditorDelegate
class.Renders an item in a list.DefaultRowSorter.ModelWrapper
is responsible for providing the data that gets sorted byDefaultRowSorter
.DesktopManager objects are owned by a JDesktopPane object.Drop modes, used to determine the method by which a component tracks and indicates a drop location during drag and drop.This class has been obsoleted by the 1.4 focus APIs.Enumeration of the possible waysParallelGroup
can align its children.Group
provides the basis for the two types of operations supported byGroupLayout
: laying out components one after another (SequentialGroup
) or aligned (ParallelGroup
).AGroup
that aligns and sizes its children.AGroup
that positions and sizes its elements sequentially, one after another.A small fixed size picture, typically used to decorate components.InputMap
provides a binding between an input event (currently onlyKeyStroke
s are used) and anObject
.This class provides the validation mechanism for Swing components.A FocusTraversalPolicy which can optionally provide an algorithm for determining a JInternalFrame's initial Component.An implementation of a "push" button.An implementation of a check box -- an item that can be selected or deselected, and which displays its state to the user.JColorChooser
provides a pane of controls designed to allow a user to manipulate and select a color.A component that combines a button or editable field and a drop-down list.The interface that defines aKeySelectionManager
.The base class for all Swing components except top-level containers.Inner class of JComponent used to provide default support for accessibility.A container used to create a multiple-document interface or a virtual desktop.The main class for creating a dialog window.A text component to edit various kinds of content.This class implements accessibility support for theJEditorPane
class.JFormattedTextField
extendsJTextField
adding support for formatting arbitrary values, as well as retrieving a particular object once the user has edited the text.Instances ofAbstractFormatter
are used byJFormattedTextField
to handle the conversion both from an Object to a String, and back from a String to an Object.Instances ofAbstractFormatterFactory
are used byJFormattedTextField
to obtain instances ofAbstractFormatter
which in turn are used to format values.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.This component represents an iconified version of aJInternalFrame
.A display area for a short text string or an image, or both.JLayeredPane
adds depth to a JFC/Swing container, allowing components to overlap each other when needed.A component that displays a list of objects and allows the user to select one or more items.A subclass ofTransferHandler.DropLocation
representing a drop location for aJList
.An implementation of a menu -- a popup window containingJMenuItem
s that is displayed when the user selects an item on theJMenuBar
.A listener class that watches for a popup window closing.An implementation of a menu bar.An implementation of an item in a menu.This class implements accessibility support for theJMenuItem
class.JPanel
is a generic lightweight container.An implementation of a popup menu -- a small window that pops up and displays a series of choices.A lightweight container used behind the scenes byJFrame
,JDialog
,JWindow
,JApplet
, andJInternalFrame
.An implementation of a scrollbar.Provides a scrollable view of a lightweight component.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.A single line input field that lets the user select a number or an object value from an ordered sequence.A simple base class for more specialized editors that displays a read-only view of the model's current value with aJFormattedTextField
.TheJTable
is used to display and edit regular two-dimensional tables of cells.A subclass ofTransferHandler.DropLocation
representing a drop location for aJTable
.Printing modes, used in printingJTable
s.JTextField
is a lightweight component that allows the editing of a single line of text.This class implements accessibility support for theJTextField
class.An implementation of a two-state button.This class implements accessibility support for theJToggleButton
class.Used to display a "Tip" for a Component.A control that displays a set of hierarchical data as an outline.A subclass ofTransferHandler.DropLocation
representing a drop location for aJTree
.EmptySelectionModel
is aTreeSelectionModel
that does not allow anything to be selected.Handles creating a newTreeSelectionEvent
with theJTree
as the source and passing it off to all the listeners.The "viewport" or "porthole" through which you see the underlying information.A listener for the view.A KeyStroke represents a key action on the keyboard, or equivalent input device.LayoutStyle
provides information about how to position components.ComponentPlacement
is an enumeration of the possible ways two components can be placed relative to each other.Identifies components that can be used as "rubber stamps" to paint the cells in a JList.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.This interface represents the current state of the selection for any of the components that display a list of values with stable indices.LookAndFeel
, as the name implies, encapsulates a look and feel.Any component that can be placed into a menu should implement this interface.A MenuSelectionManager owns the selection in menu hierarchy.A mutable version ofComboBoxModel
.Popups are used to display aComponent
to the user, typically on top of all the otherComponent
s in a particular containment hierarchy.PopupFactory
, as the name implies, is used to obtain instances ofPopup
s.A class to monitor the progress of some operation.This class manages repaint requests, allowing the number of repaints to be minimized, for example by collapsing multiple requests into a single repaint for members of a component tree.This interface is implemented by components that have a single JRootPane child: JDialog, JFrame, JWindow, JApplet, JInternalFrame.RowFilter
is used to filter out entries from the model so that they are not shown in the view.Enumeration of the possible comparison values supported by some of the defaultRowFilter
s.AnEntry
object is passed to instances ofRowFilter
, allowing the filter to get the value of the entry's data, and thus to determine whether the entry should be shown.RowSorter
provides the basis for sorting and filtering.SortKey describes the sort order for a particular column.An interface that provides information to a scrolling container like JScrollPane.Constants used with the JScrollPane component.The layout manager used byJScrollPane
.A model that supports at most one indexed selection.For the convenience of layout managers, calculates information about the size and position of components.A FocusTraversalPolicy that determines traversal order by sorting the Components of a focus traversal cycle based on a given Comparator.SortOrder is an enumeration of the possible sort orderings.ASpinnerModel
for sequences ofDate
s.A simple implementation ofSpinnerModel
whose values are defined by an array or aList
.A model for a potentially unbounded sequence of object values.ASpinnerModel
for sequences of numbers.An instance of theSpring
class holds three properties that characterize its behavior: the minimum, preferred, and maximum values.AConstraints
object holds the constraints that govern the way a component's size and position change in a container controlled by aSpringLayout
.A collection of constants generally used for positioning and orienting components on the screen.An annotation used to specify some swing-related information for the automatically generatedBeanInfo
classes.Values for thestate
bound property.Manages all theToolTips
in the system.This class is used to handle the transfer of aTransferable
to and from Swing components.Represents a location where dropped data should be inserted.This class encapsulates all relevant details of a clipboard or drag and drop transfer, and also allows for customizing aspects of the drag and drop experience.A table of defaults for Swing components.This class enables one to store an entry in the defaults table that isn't constructed until the first time it's looked up with one of thegetXXX(key)
methods.Provides a little information about an installedLookAndFeel
for the sake of configuring a menu or for initial application set up.An exception that indicates the requested look & feel management classes are not present on the user's system.Constants used to control the window-closing operation. -
-
ClassDescriptionA small fixed size picture, typically used to decorate components.
JColorChooser
provides a pane of controls designed to allow a user to manipulate and select a color.The base class for all Swing components except top-level containers.JPanel
is a generic lightweight container. -
ClassDescriptionThe base class for all Swing components except top-level containers.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.Any component that can be placed into a menu should implement this interface.A MenuSelectionManager owns the selection in menu hierarchy.
RowSorter
provides the basis for sorting and filtering. -
-
ClassDescription
ActionMap
provides mappings fromObject
s (called keys orAction
names) toAction
s.AComponentInputMap
is anInputMap
associated with a particularJComponent
.A small fixed size picture, typically used to decorate components.InputMap
provides a binding between an input event (currently onlyKeyStroke
s are used) and anObject
.An implementation of a "push" button.A component that combines a button or editable field and a drop-down list.The base class for all Swing components except top-level containers.JFileChooser
provides a simple mechanism for the user to choose a file.JLayer
is a universal decorator for Swing components which enables you to implement various advanced painting effects as well as receive notifications of allAWTEvent
s generated within its borders.A component that displays a list of objects and allows the user to select one or more items.JOptionPane
makes it easy to pop up a standard dialog box that prompts users for a value or informs them of something.An implementation of a popup menu -- a small window that pops up and displays a series of choices.JSplitPane
is used to divide two (and only two)Component
s.A component that lets the user switch between a group of components by clicking on a tab with a given title and/or icon.A control that displays a set of hierarchical data as an outline.Popups are used to display aComponent
to the user, typically on top of all the otherComponent
s in a particular containment hierarchy. -
ClassDescriptionThis class provides default implementations for the JFC
Action
interface.Defines common behaviors for buttons and menu items.The abstract definition for the data model that provides aList
with its contents.TheAction
interface provides a useful extension to theActionListener
interface in cases where the same functionality may be accessed by several controls.ActionMap
provides mappings fromObject
s (called keys orAction
names) toAction
s.A layout manager that allows multiple components to be laid out either vertically or horizontally.This class is inserted in between cell renderers and the components that use them.The editor component used for JComboBox components.A data model for a combo box.DesktopManager objects are owned by a JDesktopPane object.A small fixed size picture, typically used to decorate components.An implementation of a "push" button.JColorChooser
provides a pane of controls designed to allow a user to manipulate and select a color.A component that combines a button or editable field and a drop-down list.The base class for all Swing components except top-level containers.A container used to create a multiple-document interface or a virtual desktop.JFileChooser
provides a simple mechanism for the user to choose a file.An extended version ofjava.awt.Frame
that adds support for the JFC/Swing component architecture.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.This component represents an iconified version of aJInternalFrame
.A display area for a short text string or an image, or both.A component that displays a list of objects and allows the user to select one or more items.An implementation of a menu -- a popup window containingJMenuItem
s that is displayed when the user selects an item on theJMenuBar
.An implementation of a menu bar.An implementation of an item in a menu.JOptionPane
makes it easy to pop up a standard dialog box that prompts users for a value or informs them of something.JPanel
is a generic lightweight container.An implementation of a popup menu -- a small window that pops up and displays a series of choices.A component that visually displays the progress of some task.A lightweight container used behind the scenes byJFrame
,JDialog
,JWindow
,JApplet
, andJInternalFrame
.An implementation of a scrollbar.Provides a scrollable view of a lightweight component.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.A component that lets the user graphically select a value by sliding a knob within a bounded interval.A single line input field that lets the user select a number or an object value from an ordered sequence.JSplitPane
is used to divide two (and only two)Component
s.A component that lets the user switch between a group of components by clicking on a tab with a given title and/or icon.TheJTable
is used to display and edit regular two-dimensional tables of cells.JTextField
is a lightweight component that allows the editing of a single line of text.JToolBar
provides a component that is useful for displaying commonly usedAction
s or controls.A control that displays a set of hierarchical data as an outline.A subclass ofTransferHandler.DropLocation
representing a drop location for aJTree
.A KeyStroke represents a key action on the keyboard, or equivalent input device.Identifies components that can be used as "rubber stamps" to paint the cells in a JList.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.This interface represents the current state of the selection for any of the components that display a list of values with stable indices.LookAndFeel
, as the name implies, encapsulates a look and feel.Any component that can be placed into a menu should implement this interface.A MenuSelectionManager owns the selection in menu hierarchy.This interface is implemented by components that have a single JRootPane child: JDialog, JFrame, JWindow, JApplet, JInternalFrame.Constants used with the JScrollPane component.A collection of constants generally used for positioning and orienting components on the screen.Fires one or moreActionEvent
s at specified intervals.A table of defaults for Swing components. -
ClassDescriptionThis class provides default implementations for the JFC
Action
interface.Defines common behaviors for buttons and menu items.The abstract definition for the data model that provides aList
with its contents.TheAction
interface provides a useful extension to theActionListener
interface in cases where the same functionality may be accessed by several controls.ActionMap
provides mappings fromObject
s (called keys orAction
names) toAction
s.This class is inserted in between cell renderers and the components that use them.The editor component used for JComboBox components.A data model for a combo box.Renders an item in a list.A small fixed size picture, typically used to decorate components.An implementation of a "push" button.A component that combines a button or editable field and a drop-down list.The base class for all Swing components except top-level containers.JFileChooser
provides a simple mechanism for the user to choose a file.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.A display area for a short text string or an image, or both.A component that displays a list of objects and allows the user to select one or more items.An implementation of a menu -- a popup window containingJMenuItem
s that is displayed when the user selects an item on theJMenuBar
.JPanel
is a generic lightweight container.An implementation of a popup menu -- a small window that pops up and displays a series of choices.Provides a scrollable view of a lightweight component.A component that lets the user graphically select a value by sliding a knob within a bounded interval.JToolBar
provides a component that is useful for displaying commonly usedAction
s or controls.LayoutStyle
provides information about how to position components.Identifies components that can be used as "rubber stamps" to paint the cells in a JList.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.LookAndFeel
, as the name implies, encapsulates a look and feel.Any component that can be placed into a menu should implement this interface.Constants used with the JScrollPane component.A collection of constants generally used for positioning and orienting components on the screen.A table of defaults for Swing components. -
ClassDescriptionA component that combines a button or editable field and a drop-down list.The base class for all Swing components except top-level containers.
JFileChooser
provides a simple mechanism for the user to choose a file.A component that displays a list of objects and allows the user to select one or more items.JOptionPane
makes it easy to pop up a standard dialog box that prompts users for a value or informs them of something.An implementation of a popup menu -- a small window that pops up and displays a series of choices.JSplitPane
is used to divide two (and only two)Component
s.A component that lets the user switch between a group of components by clicking on a tab with a given title and/or icon.A control that displays a set of hierarchical data as an outline.LookAndFeel
, as the name implies, encapsulates a look and feel.Popups are used to display aComponent
to the user, typically on top of all the otherComponent
s in a particular containment hierarchy.A table of defaults for Swing components. -
ClassDescriptionThe base class for all Swing components except top-level containers.
LookAndFeel
, as the name implies, encapsulates a look and feel.A painting delegate. -
ClassDescriptionDefines common behaviors for buttons and menu items.A small fixed size picture, typically used to decorate components.The base class for all Swing components except top-level containers.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.
JPanel
is a generic lightweight container.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.A component that lets the user graphically select a value by sliding a knob within a bounded interval.LookAndFeel
, as the name implies, encapsulates a look and feel.Constants used with the JScrollPane component.A collection of constants generally used for positioning and orienting components on the screen.A table of defaults for Swing components. -
ClassDescriptionThis interface defines the methods any general editor should be able to implement.An implementation of
RowSorter
that provides sorting and filtering around a grid-based data model.The base class for all Swing components except top-level containers.Inner class of JComponent used to provide default support for accessibility.A display area for a short text string or an image, or both.TheJTable
is used to display and edit regular two-dimensional tables of cells.This interface represents the current state of the selection for any of the components that display a list of values with stable indices.RowSorter
provides the basis for sorting and filtering.A collection of constants generally used for positioning and orienting components on the screen. -
ClassDescriptionThis class provides default implementations for the JFC
Action
interface.TheAction
interface provides a useful extension to theActionListener
interface in cases where the same functionality may be accessed by several controls.Drop modes, used to determine the method by which a component tracks and indicates a drop location during drag and drop.A small fixed size picture, typically used to decorate components.The base class for all Swing components except top-level containers.Inner class of JComponent used to provide default support for accessibility.A text component to edit various kinds of content.JFormattedTextField
extendsJTextField
adding support for formatting arbitrary values, as well as retrieving a particular object once the user has edited the text.Instances ofAbstractFormatter
are used byJFormattedTextField
to handle the conversion both from an Object to a String, and back from a String to an Object.Instances ofAbstractFormatterFactory
are used byJFormattedTextField
to obtain instances ofAbstractFormatter
which in turn are used to format values.A KeyStroke represents a key action on the keyboard, or equivalent input device.An interface that provides information to a scrolling container like JScrollPane.For the convenience of layout managers, calculates information about the size and position of components.A collection of constants generally used for positioning and orienting components on the screen.An annotation used to specify some swing-related information for the automatically generatedBeanInfo
classes.Represents a location where dropped data should be inserted. -
ClassDescriptionThis class provides default implementations for the JFC
Action
interface.TheAction
interface provides a useful extension to theActionListener
interface in cases where the same functionality may be accessed by several controls.A small fixed size picture, typically used to decorate components.A text component to edit various kinds of content.For the convenience of layout managers, calculates information about the size and position of components.A collection of constants generally used for positioning and orienting components on the screen. -
ClassDescriptionThis interface defines the methods any general editor should be able to implement.Default data model for list selections.A small fixed size picture, typically used to decorate components.The base class for all Swing components except top-level containers.A display area for a short text string or an image, or both.
JTextField
is a lightweight component that allows the editing of a single line of text.A control that displays a set of hierarchical data as an outline.An interface that provides information to a scrolling container like JScrollPane.A collection of constants generally used for positioning and orienting components on the screen.Fires one or moreActionEvent
s at specified intervals.