CircleTextDemo.java
import java.awt.*;
import java.awt.event.*;
import java.awt.geom.*;
/**
* A demo class that illustrates drawing text
* along the outside of a circle.
*/
public class CircleTextDemo extends Canvas {
Frame myframe;
TextField text;
Button printBtn;
Font myfont;
Color textcolor;
Color circlecolor;
/**
* Create a CircleTextDemo canvas and frame
* with default settings.
*/
public CircleTextDemo() {
this("Serif", Font.PLAIN, 18, Color.pink, Color.black);
}
/**
* Create a CircleTextDemo canvas and frame
* with supplied settings.
*
* @param ff Font family (usually "Serif")
* @param fs Font style (usually Font.PLAIN)
* @param fz Font size (usually 18)