/*----------------------------------------------------------------------*/ /* SimpleApplet - a simple applet that uses Rotator */ /*----------------------------------------------------------------------*/ /* Jim Morey - morey@math.ubc.ca - May, 1996 */ /*----------------------------------------------------------------------*/ import java.io.*; import java.applet.*; import java.awt.*; import java.net.*; import java.lang.*; import Rotator; import java.awt.Choice; import HBlock; /*----------------------------------------------------------------------*/ public class SimpleApplet extends Applet { Rotator rotator; Checkbox spin, xyZ, xyW; Button colour; Choice choice; URL here; int H,W; /* - - - - - - - - - - - - - - - - - - - - - - */ public void init() { setLayout(new FlowLayout(FlowLayout.CENTER,0,0)); setBackground(Color.white); String config = getParameter("hBlock"); String title = getParameter("title"); here = this.getDocumentBase(); try { /* .. get list of files .. */ choice = new Choice(); InputStream is_index = new URL(here,config).openStream(); StreamTokenizer token = new StreamTokenizer(is_index); token.eolIsSignificant(false); token.commentChar('#'); token.nextToken(); int number = (int)token.nval; for (int i=0;i