GUIs Flashcards

1
Q

What is an event driven language?

A
  • Action/Interactions like button clicks or mouse presses will trigger an event
  • Events are preprogramed blocks of code that will run when certain actions are performed
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the purpose of a layout manager?

A

Determines the locations of buttons and objects in the GUI

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

How do you add layers of abstraction to a GUI?

A

Nesting layout managers in one another

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

What is the purpose of the following listeners?
1. MouseListener
2. MouseMotionListener
3. ChangeListener
4. ActionListener

A
  1. MouseListener: Responds to mouse clicks
  2. MouseMotionListener: Responds to mouse movements
  3. ChangeListener: Responds to GUI check boxes
  4. ActionListener: Responds to GUI buttons and menu items
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Where can Inner classes be defined?

A
  • Inside the scope of a class, but outside any methods
  • Inside the scope of a class and inside of a method
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Which object is used to draw components on screen?

A

The “Graphics” object, often declared as “g”

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