import java.awt.*;
import javax.swing.*;        

/**
 *  A simple Swing application that creates and displays a
 *  JCircle element.GUI demo
 */
public class GUIdemoApplet extends JApplet {
    /** 
     *  This is the entry point for the applet version 
     */
    public void init() {
        final GUIdemo GUI = new GUIdemo();

	//Execute a job on the event-dispatching thread:
	//creating this applet's GUI.
	try {
	    javax.swing.SwingUtilities.invokeAndWait(new Runnable() {
		    public void run() {
                        // line below would create separate window
			//gui.createAndShowGUI();

                        // this line creates applet in browser window
                        GUI.createComponents(getContentPane());
		    }
		});
	} catch (Exception e) {
	    System.err.println("createGUI didn't successfully complete");
	}
    }
}

