| Package | Description | 
|---|---|
| java.applet | Provides the classes necessary to create an applet and the classes an applet
uses to communicate with its applet context. | 
| java.awt | Contains all of the classes for creating user
interfaces and for painting graphics and images. | 
| 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.colorchooser | Contains classes and interfaces used by the  JColorChoosercomponent. | 
| 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. | 
| javax.swing.table | Provides classes and interfaces for dealing with
 javax.swing.JTable. | 
| javax.swing.text | Provides classes and interfaces that deal with editable
and noneditable text components. | 
| javax.swing.tree | Provides classes and interfaces for dealing with
 javax.swing.JTree. | 
| Modifier and Type | Class | Description | 
|---|---|---|
| class  | AppletAn applet is a small program that is intended not to be run on
 its own, but rather to be embedded inside another application. | 
| Modifier and Type | Class | Description | 
|---|---|---|
| class  | ButtonThis class creates a labeled button. | |
| class  | CanvasA  Canvascomponent represents a blank rectangular
 area of the screen onto which the application can draw or from
 which the application can trap input events from the user. | |
| class  | CheckboxA check box is a graphical component that can be in either an
 "on" ( true) or "off" (false) state. | |
| class  | ChoiceThe  Choiceclass presents a pop-up menu of choices. | |
| class  | ComponentA component is an object having a graphical representation
 that can be displayed on the screen and that can interact with the
 user. | |
| class  | ContainerA generic Abstract Window Toolkit(AWT) container object is a component
 that can contain other AWT components. | |
| class  | DialogA Dialog is a top-level window with a title and a border
 that is typically used to take some form of input from the user. | |
| class  | FileDialogThe  FileDialogclass displays a dialog window
 from which the user can select a file. | |
| class  | FrameA  Frameis a top-level window with a title and a border. | |
| class  | LabelA  Labelobject is a component for placing text in a
 container. | |
| class  | ListThe  Listcomponent presents the user with a
 scrolling list of text items. | |
| class  | MenuA  Menuobject is a pull-down menu component
 that is deployed from a menu bar. | |
| class  | MenuBarThe  MenuBarclass encapsulates the platform's
 concept of a menu bar bound to a frame. | |
| class  | PanelPanelis the simplest container class. | |
| class  | PopupMenuA class that implements a menu which can be dynamically popped up
 at a specified position within a component. | |
| class  | ScrollbarThe  Scrollbarclass embodies a scroll bar, a
 familiar user-interface object. | |
| class  | ScrollPaneA container class which implements automatic horizontal and/or
 vertical scrolling for a single child component. | |
| class  | TextAreaA  TextAreaobject is a multi-line region
 that displays text. | |
| class  | TextComponentThe  TextComponentclass is the superclass of
 any component that allows the editing of some text. | |
| class  | TextFieldA  TextFieldobject is a text component
 that allows for the editing of a single line of text. | |
| class  | WindowA  Windowobject is a top-level window with no borders and no
 menubar. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| MenuContainer | PopupMenu. getParent()Returns the parent container for this menu component. | |
| MenuContainer | MenuComponent. getParent()Returns the parent container for this menu component. | 
| Modifier and Type | Class | Description | 
|---|---|---|
| class  | AbstractButtonDefines common behaviors for buttons and menu items. | |
| class  | BoxA lightweight container
 that uses a BoxLayout object as its layout manager. | |
| static class  | Box.FillerAn implementation of a lightweight component that participates in
 layout but has no view. | |
| class  | CellRendererPaneThis class is inserted in between cell renderers and the components that
 use them. | |
| class  | DefaultListCellRendererRenders an item in a list. | |
| static class  | DefaultListCellRenderer.UIResourceA subclass of DefaultListCellRenderer that implements UIResource. | |
| class  | JAppletAn extended version of  java.applet.Appletthat adds support for
 the JFC/Swing component architecture. | |
| 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  | JColorChooserJColorChooserprovides a pane of controls designed to allow
 a user to manipulate and select a color. | |
| class  | JComboBox<E>A component that combines a button or editable field and a drop-down list. | |
| class  | JComponentThe base class for all Swing components except top-level containers. | |
| class  | JDesktopPaneA container used to create a multiple-document interface or a virtual desktop. | |
| class  | JDialogThe main class for creating a dialog window. | |
| class  | JEditorPaneA text component to edit various kinds of content. | |
| class  | JFileChooserJFileChooserprovides a simple mechanism for the user to
 choose a file. | |
| class  | JFormattedTextFieldJFormattedTextFieldextendsJTextFieldadding
 support for formatting arbitrary values, as well as retrieving a particular
 object once the user has edited the text. | |
| class  | JFrameAn extended version of  java.awt.Framethat adds support for
 the JFC/Swing component architecture. | |
| class  | JInternalFrameA 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. | |
| static class  | JInternalFrame.JDesktopIconThis component represents an iconified version of a
  JInternalFrame. | |
| class  | JLabelA display area for a short text string or an image,
 or both. | |
| class  | JLayer<V extends Component>JLayeris a universal decorator for Swing components
 which enables you to implement various advanced painting effects as well as
 receive notifications of allAWTEvents generated within its borders. | |
| class  | JLayeredPaneJLayeredPaneadds depth to a JFC/Swing container,
 allowing components to overlap each other when needed. | |
| class  | JList<E>A component that displays a list of objects and allows the user to select
 one or more items. | |
| class  | JMenuAn implementation of a menu -- a popup window containing
  JMenuItems that
 is displayed when the user selects an item on theJMenuBar. | |
| class  | JMenuBarAn implementation of a menu bar. | |
| class  | JMenuItemAn implementation of an item in a menu. | |
| class  | JOptionPaneJOptionPanemakes it easy to pop up a standard dialog box that
 prompts users for a value or informs them of something. | |
| class  | JPanelJPanelis a generic lightweight container. | |
| class  | JPasswordFieldJPasswordFieldis 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. | |
| class  | JPopupMenuAn implementation of a popup menu -- a small window that pops up
 and displays a series of choices. | |
| static class  | JPopupMenu.SeparatorA popup menu-specific separator. | |
| class  | JProgressBarA component that visually displays the progress of some task. | |
| 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  | JRootPaneA lightweight container used behind the scenes by
  JFrame,JDialog,JWindow,JApplet, andJInternalFrame. | |
| class  | JScrollBarAn implementation of a scrollbar. | |
| class  | JScrollPaneProvides a scrollable view of a lightweight component. | |
| protected class  | JScrollPane.ScrollBarBy default  JScrollPanecreates scrollbars
 that are instances
 of this class. | |
| class  | JSeparatorJSeparatorprovides a general purpose component for
 implementing divider lines - most commonly used as a divider
 between menu items that breaks them up into logical groupings. | |
| class  | JSliderA component that lets the user graphically select a value by sliding
 a knob within a bounded interval. | |
| class  | JSpinnerA single line input field that lets the user select a
 number or an object value from an ordered sequence. | |
| static class  | JSpinner.DateEditorAn editor for a  JSpinnerwhose model is aSpinnerDateModel. | |
| static class  | JSpinner.DefaultEditorA simple base class for more specialized editors
 that displays a read-only view of the model's current
 value with a  JFormattedTextField. | |
| static class  | JSpinner.ListEditorAn editor for a  JSpinnerwhose model is aSpinnerListModel. | |
| static class  | JSpinner.NumberEditorAn editor for a  JSpinnerwhose model is aSpinnerNumberModel. | |
| class  | JSplitPaneJSplitPaneis used to divide two (and only two)Components. | |
| class  | JTabbedPaneA component that lets the user switch between a group of components by
 clicking on a tab with a given title and/or icon. | |
| class  | JTableThe  JTableis used to display and edit regular two-dimensional tables
 of cells. | |
| class  | JTextAreaA  JTextAreais a multi-line area that displays plain text. | |
| class  | JTextFieldJTextFieldis a lightweight component that allows the editing
 of a single line of text. | |
| class  | JTextPaneA text component that can be marked up with attributes that are
 represented graphically. | |
| class  | JToggleButtonAn implementation of a two-state button. | |
| class  | JToolBarJToolBarprovides a component that is useful for
 displaying commonly usedActions or controls. | |
| static class  | JToolBar.SeparatorA toolbar-specific separator. | |
| class  | JToolTipUsed to display a "Tip" for a Component. | |
| class  | JTree | |
| class  | JViewportThe "viewport" or "porthole" through which you see the underlying
 information. | |
| class  | JWindowA  JWindowis a container that can be displayed anywhere on the
 user's desktop. | 
| Modifier and Type | Class | Description | 
|---|---|---|
| class  | AbstractColorChooserPanelThis is the abstract superclass for color choosers. | 
| Modifier and Type | Class | Description | 
|---|---|---|
| class  | BasicArrowButtonJButton object that draws a scaled Arrow in one of the cardinal directions. | |
| class  | BasicComboBoxRendererComboBox renderer | |
| static class  | BasicComboBoxRenderer.UIResourceA subclass of BasicComboBoxRenderer that implements UIResource. | |
| class  | BasicComboPopupThis is a basic implementation of the  ComboPopupinterface. | |
| class  | BasicInternalFrameTitlePaneThe class that manages a basic title bar | |
| class  | BasicInternalFrameTitlePane.SystemMenuBarThis class should be treated as a "protected" inner class. | |
| class  | BasicSplitPaneDividerDivider used by BasicSplitPaneUI. | |
| protected class  | BasicToolBarUI.DragWindow | 
| Modifier and Type | Class | Description | 
|---|---|---|
| class  | MetalComboBoxButtonJButton subclass to help out MetalComboBoxUI | |
| class  | MetalComboBoxUI.MetalComboPopupDeprecated. 
 As of Java 2 platform v1.4. | |
| protected class  | MetalFileChooserUI.FileRenderer | |
| class  | MetalFileChooserUI.FilterComboBoxRendererRender different type sizes and styles. | |
| class  | MetalInternalFrameTitlePaneClass that manages a JLF title bar | |
| class  | MetalScrollButtonJButton object for Metal scrollbar arrows. | 
| Modifier and Type | Class | Description | 
|---|---|---|
| class  | DefaultTableCellRendererThe standard class for rendering (displaying) individual cells
 in a  JTable. | |
| static class  | DefaultTableCellRenderer.UIResourceA subclass of  DefaultTableCellRendererthat
 implementsUIResource. | |
| class  | JTableHeaderThis is the object which manages the header of the  JTable. | 
| Modifier and Type | Class | Description | 
|---|---|---|
| class  | JTextComponentJTextComponentis the base class for swing text
 components. | 
| Modifier and Type | Class | Description | 
|---|---|---|
| class  | DefaultTreeCellEditor.DefaultTextFieldTextFieldused when no editor is supplied. | |
| class  | DefaultTreeCellEditor.EditorContainerContainer responsible for placing the  editingComponent. | |
| class  | DefaultTreeCellRendererDisplays an entry in a tree. | 
 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, 2025, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.