 | Events are sorted and dispatched by the programmer
AWT10.java
import java.awt.*;
import java.applet.Applet;
public class AWT10 extends Applet {
int xval=10, yval=10;
public boolean mouseDown(Event evt, int x, int y){
xval = x;
yval = y;
repaint();
return true;
}
public void init() { }
public void start() { }
public void paint(Graphics g) {
g.setColor(Color.black);
g.drawArc(xval,yval,40,40,0,360);
}
}
|