g.setClip(oldClip);
  void paintSimple(Graphics g)  {    // We need to call this to properly clear the background.    paintComponent(g);    Point pos = getViewPosition();    Component view = getView();    boolean translated = false;    try      {        g.translate(-pos.x, -pos.y);        translated = true;        view.paint(g);      }     finally       {        if (translated)          g.translate (pos.x, pos.y);      }  }