Since I have used the thread.sleep() method, my graphics is updating way to slowly. How would I convert this into a timer?

The point of the applet is just to move the black dot around the screen...