Chapter 19 Flashcards

1
Q

What paintComponent() method do

A

draw rectangle

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

What are 2 initiative methods

A
  • System initiative

- User initiative

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

What repaint() do

A

paint

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

What timer do

A

It triggers automatically after some time

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

Do we have timer in utility class and swing too

A

Yes

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

Timer calls what method

A

public void action

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

What are 2 arguments for timer

A

delay, listener

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