public void update(Graphics g){
  g.setColor(getForeground());
  paint(g);
}

public void update ( Graphics g ) { g . setColor ( getForeground ( ) ) ; paint ( g ) ; }
updates the display area of the window .
