>>102
update() をオーバーライドする。

public void update(Graphics g){
  paint(g);
}
public void paint(Graphics g){
  …
}