... setFrameFromCenter(Point2D p1, Point2D p2) 3.4.2 Rectangle2D Like the Point2D class, java.awt.geom.Rectangle2D is abstract. Two inner subclasses, Rectangle2D.Double and Rectangle2D.Float, provide ... demo/jfc/Java2D directory in the JDK installation directory. Then run the Java2Demo class. For example: C:> cd \jdk1.2\demo\jfc\Java2D C:> java Java2Demo Figure 1.1. Sun's 2D demo Java 2D ... public Line2D.Float(Point2D p1, Point2D p2) This constructor creates a line whose endpoints are p1 and p2. The Line2D.Double class has a corresponding set of constructors: public Line2D.Double()...