Unit 7 Quiz Flashcards
If a class is limited in its scope that it is needed by only one other class, you sould define that class as _______?
Inner class
What does the following code do?
public String getText()
Returns the contents of the text box
The _______ color is the color of the area behind the text.
Background
A _______ is a computer monitor’s smallest displayable unit.
Pixel
The ______ method assigns the width and height of the current windown.
setSize
If an event is fired, and you want your program to handle the fired event, then you need to create a _______ for the event.
Listener
The _______ color is the color of the text.
Foreground
The basic idea behind ______ is that the program waits for events to occur and the program responds to events if and when they occur.
Event Driven Programming
A _______ is a message that tells the program that something has happened.
Event
To adjust a window’s background color, call the content pane’s setBackground method.
T or F
True