Deck 12: Overview of UML

Full screen (f)
exit full mode
Question
When a button is clicked, the processor executes the instructions in method actionPerformed for that button's listener object.
Use Space or
up arrow
down arrow
to flip the card.
Question
JPanel cannot be used as a painting surface.
Question
A toolbar contains icons that can be selected by a mouse click.
Question
The layout manager can be specified as an argument of the JPanel constructor, or it can be set in any Container by calling the method flowLayoutManager.
Question
A button is a type of component.
Question
The Java API documentation uses the term ____________________ to represent the objects that are displayed on the screen and can interact with the user.
Question
Class ActionEvent is a subclass of the abstract class ____________________.
Question
A button is an object of the class ____________________.
Question
____________________ buffering allows for flicker-free updates at the cost of additional memory.
Question
All graphics coordinates are in units of ___________________.
Question
The ____________________ is the base class for all other Swing components, except the top-level containers JFrame, JDialog, JAPPlet, and JWindow.
Question
A(n) ____________________ is a method that is to be called when an action event occurs.
Question
To facilitate mutual exclusion, radio buttons are placed into a(n) ____________________.
Question
____ Layout places components in either a horizontal or vertical arrangement.
Question
The process by which an event listener is associated with an event is called ____________________ the listener for the event.
Question
All user interfaces are displayed within a(n) ____.

A) pixel
B) toolbar
C) window
D) actionListener
Question
The ____ class is an abstract class that provides the interface between the Java API and the physical device on which the image is created.

A) Graphics
B) Applet
C) Frame
D) Dialog
Question
A(n) ____ is a general-purpose intermediate component that is used to organize the other components.

A) Applet
B) Frame
C) Window
D) JPanel
Question
A primary purpose of the ____ API is to enable a programmer to develop a GUI for a Java application.

A) Window
B) Swing
C) actionListener
D) JPanel
Question
A(n) ____ combines a button or editable field and a drop-down list.

A) event
B) actionListener
C) Frame
D) combo box
Question
The Java API java.text contains the class ____, which can be used to format numbers either as pure numbers or as currency.

A) interface
B) NumberFormat
C) toolbar
D) layoutManager
Question
____ are used to give a common name to a family of interfaces and classes.

A) Marker interfaces
B) Events
C) Frames
D) Components
Question
Objects of class ____ must be placed in a containment hierarchy that is rooted in one of the top-level containers.

A) Swing
B) Frame
C) JComponent
D) Applet
Question
____ are triggered by making a selection from a list of items.

A) MouseEvents
B) JPanel events
C) ItemEvents
D) Applets
Question
The interface EventListener has no methods. Such interfaces are known as ____.

A) components
B) layouts
C) pixels
D) markers
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/25
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 12: Overview of UML
1
When a button is clicked, the processor executes the instructions in method actionPerformed for that button's listener object.
True
2
JPanel cannot be used as a painting surface.
False
3
A toolbar contains icons that can be selected by a mouse click.
True
4
The layout manager can be specified as an argument of the JPanel constructor, or it can be set in any Container by calling the method flowLayoutManager.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
5
A button is a type of component.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
6
The Java API documentation uses the term ____________________ to represent the objects that are displayed on the screen and can interact with the user.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
7
Class ActionEvent is a subclass of the abstract class ____________________.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
8
A button is an object of the class ____________________.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
9
____________________ buffering allows for flicker-free updates at the cost of additional memory.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
10
All graphics coordinates are in units of ___________________.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
11
The ____________________ is the base class for all other Swing components, except the top-level containers JFrame, JDialog, JAPPlet, and JWindow.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
12
A(n) ____________________ is a method that is to be called when an action event occurs.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
13
To facilitate mutual exclusion, radio buttons are placed into a(n) ____________________.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
14
____ Layout places components in either a horizontal or vertical arrangement.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
15
The process by which an event listener is associated with an event is called ____________________ the listener for the event.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
16
All user interfaces are displayed within a(n) ____.

A) pixel
B) toolbar
C) window
D) actionListener
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
17
The ____ class is an abstract class that provides the interface between the Java API and the physical device on which the image is created.

A) Graphics
B) Applet
C) Frame
D) Dialog
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
18
A(n) ____ is a general-purpose intermediate component that is used to organize the other components.

A) Applet
B) Frame
C) Window
D) JPanel
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
19
A primary purpose of the ____ API is to enable a programmer to develop a GUI for a Java application.

A) Window
B) Swing
C) actionListener
D) JPanel
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
20
A(n) ____ combines a button or editable field and a drop-down list.

A) event
B) actionListener
C) Frame
D) combo box
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
21
The Java API java.text contains the class ____, which can be used to format numbers either as pure numbers or as currency.

A) interface
B) NumberFormat
C) toolbar
D) layoutManager
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
22
____ are used to give a common name to a family of interfaces and classes.

A) Marker interfaces
B) Events
C) Frames
D) Components
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
23
Objects of class ____ must be placed in a containment hierarchy that is rooted in one of the top-level containers.

A) Swing
B) Frame
C) JComponent
D) Applet
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
24
____ are triggered by making a selection from a list of items.

A) MouseEvents
B) JPanel events
C) ItemEvents
D) Applets
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
25
The interface EventListener has no methods. Such interfaces are known as ____.

A) components
B) layouts
C) pixels
D) markers
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 25 flashcards in this deck.