/*Created by Alec Jacobson *March 19, 2007 */ import javax.swing.*; import java.awt.*; import java.util.*; import java.applet.*; /*three body chaos with one to nine satellites with *the "same" starting location */ public class ThreeBodyBufferedApplet extends BufferedApplet //the class that does the "painting" { /*all these instances may or may not be used depending *on the input of the user*/ int amount = 10; Position[] moon = new Position[amount]; int count = 0; int h,w; Thread runner = null; boolean clear = true; boolean mouse_down = false; boolean mouse_dragged = false; boolean mouse_click_not_drag = false; int curr_mx, curr_my; int prev_mx, prev_my; boolean initialized = false; public void initialize(){ for(int j = 0; j