1/40
These flashcards cover key concepts, definitions, and features related to Java GUI, JFC, and Swing programming.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No analytics yet
Send a link to your students to track their progress
What does the acronym GUI stand for?
Graphical User Interface
Which corporation's Palo Alto Research Center designed the GUI in 1970?
Xerox Corporation
What is the short form for Java Foundation Classes?
JFC
Which JFC feature enables assistive technologies to get information from the user interface?
Accessibility API
What is the name of the toolkit developed by Netscape that evolved into Swing?
Internet Foundation Classes (IFC)
Which standard API is used for providing graphical user interfaces for Java programs?
Abstract Window Toolkit (AWT)
What specific letter do most Swing UI component names begin with?
J (e.g., JButton, JFrame, JLabel)
Which JFC feature allows developers to build applications that interact with users worldwide in their own languages?
Internationalization (I18N)
What term is used to describe Swing classes due to not requiring native resources?
Lightweight components
Name one of the basic components of a GUI.
Pointer
Which package must be imported to use Swing UI components?
javax.swing..*
Compared to Swing, AWT components are considered:
Heavyweight.
Which architecture does Swing follow that AWT does not?
MVC (Model-View-Controller) architecture.
Which JFC feature enables developers to incorporate high-quality graphics and text?
Java 2D API.
Which of the following is NOT a basic component of a GUI?
Command Line.
All GUI classes are based on the fundamental classes in the .
AWT (Abstract Window Toolkit).
Every Swing component is a descendant of .
JComponent.
Unlike AWT, Swing is .
Platform Independent.
The support in Swing allows the same program to use either the Java or the Windows look and feel.
Pluggable Look-and-Feel (PLAF).
In the Java Swing hierarchy, the JComponent is a child of the class.
Container.
What types of components does a Container hold?
Other components such as Panel, Frame, and Dialog.
What is the purpose of a Dialog in Java Swing?
It serves as a pop-up window.
What can JFrame do that many other window types cannot?
It has basic functionalities like minimize, move, and resize.
Which method sets the title of a JFrame?
setTitle(String).
What is the default behavior of the Close operation in JFrame?
HIDEONCLOSE.
What type of dialog does JOptionPane create?
Message, confirm, input, and option dialog boxes.
Which class is the base class for all Swing components starting with 'J'?
JComponent.
What is an important feature of the JComponent class?
It supports tool tips and accessibility.
What is unique about the AbstractButton class?
It is the base class for JButton, JToggleButton, JRadioButton, and JMenuItem.
What method adds a button to a JFrame?
getContentPane().add().
What is the subclass of JTextComponent that allows single line input?
JTextField.
What is the primary method to set text in a JTextArea?
setText().
How does JLabel explicitly align text or an image?
Using alignment constants: LEFT, RIGHT, CENTER.
What types of constructors are available for JComboBox?
Empty constructor, addItem(), or array-based.
What is the purpose of a JCheckBox?
It allows for an on/off selection.
How does a JRadioButton operate within a group?
It allows single selection.
What method is used to check if a JCheckBox is selected?
isSelected().
What kind of operation does JRadioButton provide when selected?
It provides a single selection in a group.
What property enables Swing to be platform independent?
Lightweight components.
Which class provides the ability to create high-quality 2D graphics?
Java 2D API.
What feature of JFC allows for support of multiple languages?
Internationalization (I18N).