A JFrame is a descendant of each of the following classes except the ________class.
GUI Quiz

Quiz
•
Computers
•
University
•
Medium
Christine Pitos
Used 52+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Component
Jar
Container
Window
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The statement JFrame myFrame = new JFrame(); creates a JFrame that is _______.
invisible and has no title
invisible and has a title
visible and has no title
visible and has a title
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When a user closes a JFrame, the default behavior is for ______.
the JFrame to close and the application to keep running
the JFrame to be hidden and the application to keep running
the JFrame to close and the application to exit
nothing to happen
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose that you create an application in which you instantiate a JFrame named frame1 and a JLabel named label1. Which of the following statements within the application adds label1 to frame1?
label1.add(frame1);
frame1.add(label1);
this.add(label1);
two of the above
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A JFrame contains a JButton named button1 that should execute an actionPerformed() method when clicked. Which statement is needed in the JFrame class?
addActionListener(this);
addActionListener(button1);
button1.addActionListener(this);
this.addActionListener(button1);
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Events in Java are objects that are created by Event Sources (such as JButtons, JPanels, and other Components).
True
False
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The three software parts of a GUI program are:
Windows, Buttons, Mice
GUI Components, Graphics, Code
GUI Components, Event Listeners, Application Code
Frames, Code, Events
Create a free account and access millions of resources
Similar Resources on Quizizz
9 questions
Interfaces Gráficas

Quiz
•
University
13 questions
Java GUI Unit 2 Review

Quiz
•
University - Professi...
9 questions
Windows Form Application

Quiz
•
6th Grade - University
13 questions
Java GUI Unit 3 Review

Quiz
•
University
10 questions
Java GUI Unit 5 Review

Quiz
•
University
15 questions
CompTIA Network+ - OSI Model

Quiz
•
University
9 questions
Module 6-Data Link Layer

Quiz
•
9th Grade - University
10 questions
Quiz 2 OOAD

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade