Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
setBackground(Color.black);<br />
int c1=(int)(255*Math.random());<br />
int c2=(int)(255*Math.random());<br />
int c3=(int)(255*Math.random());<br />
Color micolor=new Color(c1,c2,c3);<br />
g.setColor(micolor);<br />
g.fillOval(x1,y1,20,20);<br />
x1 = (int)(Math.random()*(getSize().width-20));<br />
y1 = (int)(Math.random()*(getSize().height-<br />
20));<br />
}<br />
public void stop() {<br />
if (runner != null) {<br />
runner = null;<br />
}<br />
}<br />
public void run() {<br />
Thread thisThread = Thread.currentThread();<br />
while (runner == thisThread ) {<br />
for(int i=1; i