g2.draw(new Rectangle2D.Double(
               res*0.5,res*0.5,res*1.0,res*1.0));
  }//end overridden paint()
}//end class GUI



Figure 6