int ds = 72;//default scale = 72 units per inch
    
    g2.draw(new Rectangle2D.Double(
                    0.5*ds, 0.5*ds, 1.0*ds, 1.0*ds));
  }//end overridden paint()
}//end class GUI



Figure 10