Which package in Java contains the Swing components?

A1_ITE 186: GUI

Quiz
•
Computers
•
University
•
Medium
Ira Pongasi
Used 4+ times
FREE Resource
10 questions
Show all answers
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which Swing component is used to create a simple button?
JButton
JLabel
JTextField
JPanel
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
This layout manager allows you to specify the number of rows and columns in the layout:
BorderLayout
FlowLayout
GridLayout
BoxLayout
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to set the title of a JFrame?
setTitle()
setHeader()
setFrameTitle()
setWindowTitle()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What method is used to make a JFrame visible?
setVisible(true)
show()
display()
enable()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which Swing component allows users to enter a single line of text?
JLabel
JTextArea
JTextField
JPanel
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you add an event listener to a JButton?
button.addActionListener(listener);
button.addEventListener(listener);
button.addClickListener(listener);
button.addListener(listener);
Create a free account and access millions of resources
Similar Resources on Quizizz
13 questions
Java GUI Unit 2 Review

Quiz
•
University - Professi...
6 questions
Pre Test Modul 1 & 2

Quiz
•
University
10 questions
Quis 1-Teori PJV

Quiz
•
University
9 questions
Interfaces Gráficas

Quiz
•
University
10 questions
Java GUI Unit 5 Review

Quiz
•
University
10 questions
GUI Quiz

Quiz
•
University
10 questions
POCO4A - Revisão - Interfaces Gráficas

Quiz
•
University
6 questions
JPRG Topic 3 - Graphical User Interfaces

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