Chapter 12 Flashcards

1
Q

What listener is used for button generator

A

ActionListener interface

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

Button generates what events

A

action event

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

Windows generates what events

A

Windows events

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

Which listener is used for window event

A

WindowListener interface

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

What is listener interface

A

It listens to events

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

What are event generation steps

A

1- Create component which can generate events (e.g. button, windows, etc)
2- Build component (objects) that can handle events (Event handlers)
3- Register handlers with generators

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

What is inheritance nature of classes in Java

A

A class can inherit one class only, but a class inherit multiple interfaces

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

Which are 2 types of listener interface for mouse events

A

1- MouseListener

2- MouseMotionListener

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

What are 5 events for mouselistener interface

A
1- clicked
2- Pressed
3- released
4- entered
5- exited
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What listener is used for key events

A

KeyListener interface

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