0% found this document useful (0 votes)
8 views5 pages

Java GUI Components Overview

Uploaded by

yasothapriya.m
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views5 pages

Java GUI Components Overview

Uploaded by

yasothapriya.m
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

GUI COMPONENTS

GUI COMPONENTS
In Java applications, the components that comprise a GUI
(Graphical User Interface) are stored in containers called
forms. The Java language provides a set of user interface
components from which GUI forms can be built.
Components are typically added to a form using the window
and arranged in the GUI Builder workspace.
Java GUIs are forms comprised of top-level containers within
which are grouped sub-containers as well as the various
components used to provide the desired information and
control functionality.
GUI COMPONENTS
JTextField:
JTextField is used for taking input of single line of text. It is most widely
used text component. It has three constructors.
JCheckBox
The JcheckBox class is used to create chekbox in swing framework. In this
example, we are creating three checkboxes to get user response.
JRadioButton
Radio button is a group of related button in which only one can be selected.
JRadioButton class is used to create a radio button in Frames.
JComboBox
Combo box is a combination of text fields and drop-down [Link]
component is used to create a combo box in Swing.
GUI COMPONENTS

JLabel
In Java, Swingtoolkit contains a JLabel Class. It is under package
[Link] class. It is used for placing text in a box. Only Single
line text is allowed and the text can not be changed directly.
JTextArea
In Java, Swing toolkit contains a JTextArea Class. It is under package
[Link] class. It is used for displaying multiple-line text.
JList
In Java, Swing toolkit contains a JList Class. It is under package
[Link] class. It is used to represent a list of items together. One
or more than one item can be selected from the list.
GUI COMPONENTS

JPasswordField
In Java, Swing toolkit contains a JPasswordField Class. It is under
package [Link] class. It is specifically used for
password and it can be edited.
JTable
In Java, Swing toolkit contains a JTable Class. It is under package
[Link] class. It used to draw a table to display data.

You might also like