
![]() |
@samstarx | |
import java.applet.* clas* ball extends Applet implements Runnable int x= 20; int y=20; int radius = 20; public void init() Thread t = new Thread(this); t.start; public void run() while(true) x++; repaint(); try t.sleep(200); catch(InterruptedException e) public void paint(Graphics g) g.setColor(Color,red); g.fillOval(x-r,y-r,r*2,r*2); |
||
1
Replies
1471
Views
0 Bookmarks
|
![]() |
@samstarx | 6 July 11 |
curly braces are not visible'' surrounding the public methods and class method body is visible. |
||


