1/10
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai | Chat |
|---|
No analytics yet
Send a link to your students to track their progress
Swing
Java provides ___ as a part of the Java Foundation Classes for creating graphical user interfaces.
Swing
This offers a rich set of lightweight components that can be added to windows to interact with users.
Widgets / Controls
What do you call the components that can be added to a window to interact with a user?
JLabel
This is a GUI component used to display uneditable text, images, or both. It is often used to label other controls like text fields.
setText(String text)
This JLabel method sets the label text
getText()
This JLabel method retrieves the current text
JTextField
This is a single-line text input component that allows users to enter or edit text.
JButton
This is a clickable button used to trigger actions when the user interacts with it.
JTextArea
This is a multi-line area for displaying or editing text. This is useful for large input or output.
JPasswordField
This is a single-line text input that hides the characters with echo characters.
JOptionPane
This is a utility class for creating standard dialogs (message, input, confirm). It is not a component you add to a container but a dialog popup.