Chapter 11 Flashcards

1
Q

What are events

A

GUI generates events when the user interact with GUI

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

Does events are represented by objects in Java

A

Yes

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

Does all GUI packages generates events

A

No

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

What is event delegation model

A

Processing of an event is delegated to a particular object (handler) in the program

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

What are event generators

A
  • Mouse
  • Button
  • Key
  • Window, etc
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are steps for event handling

A

Event generation
Event handler
Connection between handler and generator (listener)

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

What is package file of events for awt

A

java.awt.event.*

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

What getText() and setText() methods do

A
  • Get text

- Set text string to the field

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