What paintComponent() method do
draw rectangle
What are 2 initiative methods
- User initiative
What repaint() do
paint
What timer do
It triggers automatically after some time
Do we have timer in utility class and swing too
Yes
Timer calls what method
public void action
What are 2 arguments for timer
delay, listener