Java GUI and Swing Overview

0.0(0)
studied byStudied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/40

flashcard set

Earn XP

Description and Tags

These flashcards cover key concepts, definitions, and features related to Java GUI, JFC, and Swing programming.

Last updated 1:45 PM on 2/9/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

41 Terms

1
New cards

What does the acronym GUI stand for?

Graphical User Interface

2
New cards

Which corporation's Palo Alto Research Center designed the GUI in 1970?

Xerox Corporation

3
New cards

What is the short form for Java Foundation Classes?

JFC

4
New cards

Which JFC feature enables assistive technologies to get information from the user interface?

Accessibility API

5
New cards

What is the name of the toolkit developed by Netscape that evolved into Swing?

Internet Foundation Classes (IFC)

6
New cards

Which standard API is used for providing graphical user interfaces for Java programs?

Abstract Window Toolkit (AWT)

7
New cards

What specific letter do most Swing UI component names begin with?

J (e.g., JButton, JFrame, JLabel)

8
New cards

Which JFC feature allows developers to build applications that interact with users worldwide in their own languages?

Internationalization (I18N)

9
New cards

What term is used to describe Swing classes due to not requiring native resources?

Lightweight components

10
New cards

Name one of the basic components of a GUI.

Pointer

11
New cards

Which package must be imported to use Swing UI components?

javax.swing..*

12
New cards

Compared to Swing, AWT components are considered:

Heavyweight.

13
New cards

Which architecture does Swing follow that AWT does not?

MVC (Model-View-Controller) architecture.

14
New cards

Which JFC feature enables developers to incorporate high-quality graphics and text?

Java 2D API.

15
New cards

Which of the following is NOT a basic component of a GUI?

Command Line.

16
New cards

All GUI classes are based on the fundamental classes in the .

AWT (Abstract Window Toolkit).

17
New cards

Every Swing component is a descendant of .

JComponent.

18
New cards

Unlike AWT, Swing is .

Platform Independent.

19
New cards

The support in Swing allows the same program to use either the Java or the Windows look and feel.

Pluggable Look-and-Feel (PLAF).

20
New cards

In the Java Swing hierarchy, the JComponent is a child of the class.

Container.

21
New cards

What types of components does a Container hold?

Other components such as Panel, Frame, and Dialog.

22
New cards

What is the purpose of a Dialog in Java Swing?

It serves as a pop-up window.

23
New cards

What can JFrame do that many other window types cannot?

It has basic functionalities like minimize, move, and resize.

24
New cards

Which method sets the title of a JFrame?

setTitle(String).

25
New cards

What is the default behavior of the Close operation in JFrame?

HIDEONCLOSE.

26
New cards

What type of dialog does JOptionPane create?

Message, confirm, input, and option dialog boxes.

27
New cards

Which class is the base class for all Swing components starting with 'J'?

JComponent.

28
New cards

What is an important feature of the JComponent class?

It supports tool tips and accessibility.

29
New cards

What is unique about the AbstractButton class?

It is the base class for JButton, JToggleButton, JRadioButton, and JMenuItem.

30
New cards

What method adds a button to a JFrame?

getContentPane().add().

31
New cards

What is the subclass of JTextComponent that allows single line input?

JTextField.

32
New cards

What is the primary method to set text in a JTextArea?

setText().

33
New cards

How does JLabel explicitly align text or an image?

Using alignment constants: LEFT, RIGHT, CENTER.

34
New cards

What types of constructors are available for JComboBox?

Empty constructor, addItem(), or array-based.

35
New cards

What is the purpose of a JCheckBox?

It allows for an on/off selection.

36
New cards

How does a JRadioButton operate within a group?

It allows single selection.

37
New cards

What method is used to check if a JCheckBox is selected?

isSelected().

38
New cards

What kind of operation does JRadioButton provide when selected?

It provides a single selection in a group.

39
New cards

What property enables Swing to be platform independent?

Lightweight components.

40
New cards

Which class provides the ability to create high-quality 2D graphics?

Java 2D API.

41
New cards

What feature of JFC allows for support of multiple languages?

Internationalization (I18N).

Explore top flashcards

Hinduism
Updated 1056d ago
flashcards Flashcards (20)
Civil Rights EK 3
Updated 14d ago
flashcards Flashcards (60)
Vocab Unit 1
Updated 866d ago
flashcards Flashcards (50)
Muscular System I
Updated 368d ago
flashcards Flashcards (124)
50 States
Updated 203d ago
flashcards Flashcards (50)
1017
Updated 394d ago
flashcards Flashcards (55)
Hinduism
Updated 1056d ago
flashcards Flashcards (20)
Civil Rights EK 3
Updated 14d ago
flashcards Flashcards (60)
Vocab Unit 1
Updated 866d ago
flashcards Flashcards (50)
Muscular System I
Updated 368d ago
flashcards Flashcards (124)
50 States
Updated 203d ago
flashcards Flashcards (50)
1017
Updated 394d ago
flashcards Flashcards (55)