//CircDemo2 //demonstrates Circle2 (the one that has a constructor) //Andy Harris, 05/00 import java.awt.*; import java.applet.*; import Circle2; public class CircDemo2 extends Applet{ Circle2 myCirc = new Circle2(3.1f); public void init(){ this.setLayout(new GridLayout(0,2)); //check to see the radius of myCirc add (new Label("Starting radius:")); add (new Label(String.valueOf(myCirc.radius))); //Change the radius and check it out myCirc.radius = (float) 4.8; add (new Label("Radius:")); add (new Label(String.valueOf(myCirc.radius))); } // end init } // end class