I have two problems I am trying to solve.

I am using the program RealJ and JDK 1.6

(I seem to have a hard time finding tutorials on the internet because of this could anyone recommend a way to search?)

First thing I am trying to do is make Java wait. I cant seem to find a workable code. And I cant seem to slow it down by simply slugging it with complex number problems) Could anyone tell me what I can use to make Java wait?

The other thing I am trying to do is AirBrushing (like Microsoft Paint)

The idea is to draw a random dot in a random location over the area of a circle.

Its extremely easy for a square..

This simulates the general idea..but I'm not much for doing math. How would I do it over a circle?public void mouseMoved (MouseEvent e) { repaint(); } for(int i=1; i<120; i++) { q=(int)(Math.random()*120+1+599); w=(int)(Math.random()*120+1+399); bg.drawRect(q,w,1,1); }

I figured select a starting point(mousex,mousey) and draw a 1v1 square at a random direction,random distance over a fixed max distance...but I cannot for the life of me figure out how to do this(Help with sin/cos would be good)