A Visual Guide to Swing Components

Basic Controls
Simple components that are used primarily to get input from the user; they may also show simple state.
 

Button image

JButton

CheckBox image

JCheckBox

Combo box image

JComboBox

List image

JList

Menu image

JMenu

Radio Button image

JRadioButton

Slider image

JSlider

Spinner image

JSpinner

Text field image

JTextField

Password field image

JPasswordField

Interactive Displays of Highly Formatted Information
These components display highly formatted information that (if you choose) can be modified by the user.
 

Color Chooser Image

JColorChooser

Text pane Image

JEditorPane and JTextPane

File Chooser Image

JFileChooser

Table Image

JTable

Text Image

JTextArea

Tree Image

JTree

Uneditable Information Displays
These components exist solely to give the user information.

Label image

JLabel

Progress bar image

JProgressBar

Separator image

JSeparator

Tool tip image

JToolTip

Top-Level Containers
At least one of these components must be present in any Swing application.

Applet image

JApplet

Dialog image

JDialog

Frame image

JFrame

General-Purpose Containers
These general-purpose containers are used in most Swing applications.

Panel image

JPanel

Scroll pane image

JScrollPane

Split pane image

JSplitPane

Tabbed pane image

JTabbedPane

ToolBar image

JToolBar
 

Special-Purpose Containers
These special-purpose containers play specific roles in the UI.

Internal frame image

JInternalFrame

Layered pane image

JLayeredPane

Root pane image

Root pane