What is the paintComponent method? How is it used in Java graphics? How does a program intentionally cause the paintComponent method to execute? What window events can a program handle? Explain the difference between the WindowListener interface and the WindowAdapter. What interface does an application need to use if it wants to get updates on the current position of the mouse cursor as the mouse is being moved? How does the program get the x,y coordinates of the mouse cursor? Write a few lines of code to create a timer in Java which fires an ActionEvent every 150 msec. Assume the existence of a TimerEventHandler class which needs to respond to timer events.
Describe the types of information available to a program when using the KeyListener interface.