Week 12 Test Review Flashcards

1
Q

BorderLayout is the default layout manager for a JFrame’s content pane.

A

True

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

When the mouse cursor is moved into the bounds of a GUI component, methodmouseOver is called.

A

False, method mouseEntered is called.

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

A JPanel cannot be added to another JPanel.

A

False

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

In a BorderLayout, two buttons added to the NORTH region will be placed side by side.

A

False

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

A maximum of five components can be added to a BorderLayout.

A

True

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

Inner classes are not allowed to access the members of the enclosing class.

A

False, Inner classes have access to all members of the enclosing class declaration.

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

A JTextArea’s text is always read-only.

A

False, JTextAreas are editable by default.

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

Class JTextArea is a direct subclass of a class Component.

A

False

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

A JPanel is a JComponent.

A

True

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

A JPanel is a Component.

A

True

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

A JLabel is a Container.

A

True

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

A JList is a JPanel.

A

False

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

An AbstractButton is a JButton.

A

False, a JButton is an AbstractButton.

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

A JTextField is an Object.

A

True

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

ButtonGroup is a subclass of JComponent.

A

False

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