Search Header Logo

Quiz 14 - Swing Components

Authored by Casey Devet

Computers

11th Grade

Used 107+ times

Quiz 14 - Swing Components
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

What do we call a special component that holds collections other components?

event

listener

container

component

2.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

What do we call an object that waits for a specific event to happen?

event

listener

container

component

3.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

What do we call the thing that happens whenever the user interacts with the components on the screen?

event

listener

container

component

4.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

What do we call a visible object that is shown on the screen?

event

listener

container

component

5.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Which import statement is NOT needed to run Java Swing programs?

import javax.swing.*;

import java.awt.*;

import javax.swing.event.*;

import java.awt.event.*;

6.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Which method can be called on any component to change the colour of its text?

setTextColor()

setForeground()

setBackground()

setFontColor()

7.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Which of the following can be contained in one JLabel object?

text

an image

text and an image

any of the above

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?