Java Reference
In-Depth Information
45,
// start angle
180);
// arc angle
}
//****************************
// main
//****************************
public static void main(String[] args)
{
// Create an object of the class VGraphics
VGraphics aframe = new VGraphics();
// Use methods in superclasses to modify object's defaults
aframe.setSize(550, 500); // Set frame size
aframe.setLocation(200, 100); // Set frame location
aframe.setTitle(“Vector Graphics Demo”); // Title bar text
// Display frame calling the show() method of the Window
// class
aframe.show();
}
}
Figure27-3 isascreensnapshotoftheVectorGraphicsprogram.
Figure 27-3 Screen Snapshot of the VGraphics Program
 
Search WWH ::




Custom Search