/* @(#)VCLandCB.java 1 December 2006 */ /* Useful imports */ import edu.neu.ccs.*; import edu.neu.ccs.gui.*; import edu.neu.ccs.util.*; import java.awt.*; import java.awt.geom.*; import java.awt.event.*; import javax.swing.*; import javax.swing.border.*; public class VCLandCB_Applet extends JApplet { public void init() { //Execute a job on the event-dispatching thread: //creating this applet's GUI. try { javax.swing.SwingUtilities.invokeAndWait( new Runnable() { public void run() { createGUI(); } }); } catch (Exception e) { } } /* * The method to create the applet GUI with one button * that in turn launches the animation. */ private void createGUI() { Container pane = getContentPane(); pane.setLayout(new CenterLayout()); pane.add(new VCLandCB()); } }