___paint___(); //此下划线中间的部分为要改正的部分
}
});
}
public void update(Graphics g) {
___repaint(g)___; //此下划线中间的部分为要改正的部分
}
public void paint(Graphics g) {
for(int I=0;I<points.size();I++) {
Point dot=(Point)points.elementAt(I);
g.drawString("x",dot.x,dot.y);
}
}
public static void main(String args[]) {
Frame fram=new Frame("CelayTree");
SimpleHitMouse dot=new SimpleHitMouse();
dot.init();
dot.start();
fram.add("Center",dot);
fram.setSize(400,300);
fram.addWindowListener(new WindowAdapter(){
public void windowClosing(WindowEvent e)
{System.exit(0);}
});
责任编辑:cyth