|
public class MakeBox extends WindowController{
public void onMousePress(Location point){
new FilledRect(85,85,30,20,canvas);
}
public void onMouseRelease(Location point){
canvas.clear();
}
}
|
|
import objectdraw.*;
import java.awt.*;
public class MakeBox extends WindowController{
protected void onMouseDrag(Location point){
new FilledRect(point,10,10,canvas);
}
}
|