@Override protected void paintComponent(Graphics g){
  super.paintComponent(g);
  Graphics2D g2=(Graphics2D)g;
  if (shouldDraw) {
    drawDisplayListOn(g2);
  }
}

@ Override protected void paintComponent ( Graphics g ) { super . paintComponent ( g ) ; Graphics2D g2 = ( Graphics2D ) g ; if ( shouldDraw ) { drawDisplayListOn ( g2 ) ; } }
note ! called from ed thread .
