import java.applet.Applet; import java.awt.*; import java.awt.event.*; //import java.util.Vector; import java.util.Random; import java.util.Arrays; import java.util.Vector; //import org.w3c.dom.Node.*; //import org.w3c.dom.Document; //import org.w3c.dom.Element; public class eProb extends Panel implements Runnable, ActionListener { public static void main(String[] args) { int height = 400; int width = 400; Frame f = new Frame(); f.addWindowListener(new java.awt.event.WindowAdapter() { public void windowClosing(java.awt.event.WindowEvent e) { System.exit(0); }; }); eProb panel = new eProb(); f.add(panel); f.pack(); panel.setSize(width, height); // same size as defined in the HTML APPLET panel.init(); f.setSize(width, height + 20); // add 20, seems enough for the Frame title, f.setVisible(true); } final public static long serialVersionUID = 101; private int image_width, image_height; private double image_diameter; private Image zBuf; private Graphics offScreenGraphics; private Button go_1s_Button, go_2s_Button, go_2p_Button; private Button clearButton, pauseButton; private volatile Thread animationThread = null; // private Document doc = this.parent; // private Element nojavawarning = doc.getElementById("no_java_warning"); // nojavawarning.setAttribute("foo", "bar"); int blot_size = 1; private int bar_where = 20; private int bar_size = 2; // thickness of scale bar / progress bar double kZoom = 20; // pixels per Bohr radius Random generator = new Random(); int blot_max = 10000; // number of blots in scatter plot int blot_count = blot_max; String doingOrbital = "-none-"; Color LtLtYellow = new Color(0xff, 0xff, 0xc0); Color LtLtBlue = new Color(0xef, 0xef, 0xff); int ntrpRails = 100; // number of fence-rails in interpolation tables; // number of fence-posts is one greater. double[] radius = new double[1+ntrpRails]; double[] prob_r = new double[1+ntrpRails]; double[] angle = new double[1+ntrpRails]; double[] prob_a = new double[1+ntrpRails]; Vector