Lesson 5.1: Graphical User Interface Design Flashcards

1
Q

What does Java provide to display and interact with graphics?

A

Java provides packages to display and interact with graphics and multimedia objects.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What was the first grapics model that java used?

A

The first graphics model in Java was the Abstract Window Toolkit (AWT).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does AWT stand for?

A

Abstract Windows Toolkit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the name of the top level container that housed all awt components?

A

The AWT model places all components in a top-level container called a frame.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How does AWT cause methods to be invoked?

A

AWT can detect events associated with specific components that cause methods to be invoked.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the primary purpose of AWT?

A

A primary purpose of AWT and later graphics models was to build graphic user interfaces.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Why did AWT use native graphics routines directly?

A

Native graphics routines offer much better performance than generic Java routines would.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How does AWT invoke the paint() method?

A

The paint() method is called automatically when the main class is instantiated.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How can an AWT object know if its window is closed?

A

A listener method can be attached to an AWT object that takes an action when the window is closed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

The _______ class defines the overall container in which components are displayed using AWT.

A

Frame

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

A/An _______ object represents the content that will be displayed when paint() is called.

A

graphics

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

A/An _______ is a method that’s intended to detect the occurrence of a particular event.

A

listener

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

The _______ class defines the methods described in the previous question.

A

java.awt.event

How well did you know this?
1
Not at all
2
3
4
5
Perfectly