Chapter 13 Flashcards

1
Q

Components

A
  1. Individual parts that a GUI is built from
  2. Represented by objects
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Layout

A
  1. Deals with the issue of how to arrange the components on screen
  2. achieved by using layout managers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Event handling

A

-the task of reacting to user events, such as mouse button clicks or keyboard input

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

What are the 3 GUI libraries?

A
  1. AWT (Abstract Window Toolkit)- the oldest, introduced as part of original Java API
  2. Swing
  3. JavaFX library
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does the J in the class JButton indicate?

A

It is a swing version class, marked by J because there is an equivalent class in AWT named Button.

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

Almost everything you see in a GUI is contained in a __

A

Top-level window- which is one that is under the control of the operating system’s window management and which typically can be moved, resized, minimized, and maximized independently

Java calls them frames, JFrame class in Swing

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

Which 3 packages should always be imported completely in our GUI programs?

A

java.awt, java.awt.event, and javax.swing - needed for all Swing apps

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

A frame consists of what 3 parts?

A
  1. title bar
  2. optional menu bar
  3. content pane
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Components are placed in a frame by adding them to the frame’s _ or _

A

menu bar or content pane

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

T/F: Immediately following the creation of the JFrame the frame will be visible and its content pane will be empty.

A

F: Immediately following the creation of the JFrame the frame will be invisible and its content pane will be empty.

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