6.8

May 6, 2008 at 12:05 pm (Uncategorized)

1.)Describe how to set up a timer and explain what it does.
When the timer is sent the start message, its clock starts ticking, when each interval of time passes, the listener’s actionPerformed method is triggered. This method runs the operations to move the object and repaint the panel, because the timer uses the computer’s clock to measure the intervals, they will not vary with the execution speed of the computer.
2.)Describe the factors that affect our perception of the movement of a graphical object.

3.)What causes flicker? How can flicker be eliminated.

4.)How do the direction and velocity of an object determine where it will be placed after a given unit of time

Permalink Leave a Comment