SWING UI Elements
Following is the list of commonly used controls while designing GUI using SWING.
S.No Class & Description
.
JLabel
1
A JLabel object is a component for placing text in a container.
JButton
2
This class creates a labeled button.
JColorChooser
3 A JColorChooser provides a pane of controls designed to allow a user
to manipulate and select a color.
JCheck Box
4 A JCheckBox is a graphical component that can be in either
an on (true) or off (false) state.
JRadioButton
5 The JRadioButton class is a graphical component that can be in either
an on (true) or off (false) state. in a group.
JList
6
A JList component presents the user with a scrolling list of text items.
7 JComboBox
A JComboBox component presents the user with a to show up menu
of choices.
JTextField
8 A JTextField object is a text component that allows for the editing of
a single line of text.
JPasswordField
9 A JPasswordField object is a text component specialized for
password entry.
JTextArea
10 A JTextArea object is a text component that allows editing of a
multiple lines of text.
ImageIcon
11 A ImageIcon control is an implementation of the Icon interface that
paints Icons from Images
JScrollbar
12 A Scrollbar control represents a scroll bar component in order to
enable the user to select from range of values.