GUI Gone Wild!

Whoo Hoo!!!!

Page 1 of 1

9 Replies - 1108 Views - Last Post: 14 February 2009 - 10:15 PM Rate Topic: -----

#1 NeoTifa  Icon User is offline

  • Whorediot
  • member icon





Reputation: 2584
  • View blog
  • Posts: 15,612
  • Joined: 24-September 08

GUI Gone Wild!

Posted 09 February 2009 - 04:49 PM

Okay, so I had some sample code for my lab (a different lab) and we were supposed to tweak it. We got 2 classes, and we had to make a Ball class. What is supposed to happen: we basically are supposed make a "game" *yawn* where you make 2 randomly colored/sized balls and have them bounce off the screen. What is actually happening: it creates like 306 windows and freezes my computer :P Find the error..... anddddd..... go!


/**
 *
 * This is to make a new ball and such.
 * @author Erica
 */

import java.awt.*;
import java.util.*;

public class Ball {

   private int xCoord;
   private int yCoord;
   private int height;
   private int width;
   private int rise;
   private int run;
   private Color color;
   
   public Ball() {
       
       setXCoord();
       setYCoord();
       setHeight();
       setWidth();
       setRise();
       setRun();
       setColor();
       
   }//End constructor
   
   /** This method sets the initial x-coordinate */
   public void setXCoord() {
       
       int max = 51;
       Random rand = new Random();
       int tempX = rand.nextInt(max);
       xCoord = tempX;
       
   }//End setXCoord method
   
   public int getXCoord() {
       
       return(xCoord);
       
   }//End getXCoord method
   
   /** This method sets the initial y-coordinate */
   public void setYCoord() {
       
       int max = 51;
       Random rand = new Random();
       int tempY = rand.nextInt(max);
       yCoord = tempY;
       
   }//End setYCoord method
   
   public int getYCoord() {
       
       return(yCoord);
       
   }//End getYCoord method
   
   /** This method sets the initial height */
   public void setHeight() {
       
       int max = 11;
       Random rand = new Random();
       int tempH = rand.nextInt(max) + 10;
       height = tempH;
       
   }//End setHeight method
   
   public int getHeight() {
       
       return(height);
              
   }//End getHeight method
   
   /** This method sets the initial width */
   public void setWidth() {
       
       int max = 11;
       Random rand = new Random();
       int tempW = rand.nextInt(max) + 10;
       width = tempW;
       
   }//End setWidth method
   
   public int getWidth() {
       
       return(width);
       
   }//End getWidth method
   
   /** This method sets the initial rise */
   public void setRise() {
       
       int max = 11;
       Random rand = new Random();
       int tempR = rand.nextInt(max);
       rise = tempR;
       
   }//End setRise method
   
   public int getRise() {
       
       return(rise);
       
   }//End getRise method
   
   /** This method sets the initial run */
   public void setRun() {
       
       int max = 11;
       Random rand = new Random();
       int tempR = rand.nextInt(max);
       run = tempR;
       
   }//End setRise method
   
   public int getRun() {
       
       return(run);
       
   }//End getRun method
   
   /** This method sets a random color to color */
   public void setColor() {
       
       int red = (int)(Math.random() * 255);
       int green = (int)(Math.random() * 255);
       int blue = (int)(Math.random() * 255);
       Color randomColor = new Color(red, green, blue);
       color = randomColor;
       
   }//End setColor method
   
   public Color getColor() {
       
       return(color);
       
   }//End getColor method
   
   public void paintComponent (Graphics g) {
       
        g.setColor(color);
        g.fillOval(xCoord, yCoord, width, height);

    } // end method paintComponent
   
   public void move() {
       BallTest bt = new BallTest();
       
        // If ball is approaching a wall, reverse direction
        if (xCoord < (0 - run) || xCoord > (bt.getWidth() - width)) { 
            run = -run; 
        }
        
	if (yCoord < (0 - rise) || yCoord > (bt.getHeight() - height)) { 
            rise = -rise; 
        }
        
        // "Move" ball according to values in rise and run
        xCoord += run;
        yCoord += rise;
        
        
        
   }//End move method
}//End Ball class





/**
 * A panel containing two bouncing balls.  This panel may be placed in a JFrame.
 * @author ahanes
 */
public class BallPanel extends JPanel {

    Ball b1 = new Ball();
               
    Ball b2 = new Ball();
            
        
    /** Creates a new instance of BallPanel */
    public BallPanel(int w, int h) {
        super();
        
    }
    
    /**
        Paints the balls at their current positions within the panel.
     */
    public void paintComponent (Graphics g) {
        super.paintComponent(g);
        g.setColor(Color.black);                         // set color black
        g.fillRect(0,0,this.getWidth(),this.getHeight()); // paint background

       b1.paintComponent(g);
       b2.paintComponent(g);
       
    } // end method paintComponent   

    /**
       Computes the next position for the balls and updates their positions.
     */
    public void move () {
        
        b1.move();
        b2.move();
        
    } // end method move
    
}




package cs241lab5;

import java.awt.*;       // Old library classes, you still need them
import java.awt.event.*;
import javax.swing.*;    // New library classes, Swing extends AWT

/**
 * Frame to hold a bouncing ball panel, implemented in the BallPanel class.
 * Controls the animation of the ball via pauses and calls to BallPanel's move and
 * paintComponent methods.
 * @author Michael Peterson
 */
public class BallTest extends JFrame {
    
    // size of the window
    private static final int WINDOW_WIDTH = 500;
    private static final int WINDOW_HEIGHT = 300;
    
    // panel containing the bouncing ball
    private BallPanel ballPanel;
    
    public int getWidth() {
        
        return(WINDOW_WIDTH);
        
    }//End getWidth method
    
    public int getHeight() {
        
        return(WINDOW_HEIGHT);
        
    }//End getHeight method
    
    /**
     * Pause command used to control the speed of the bouncing ball animation.
     * Currently pauses for 20 ms.  Use smaller values for faster animation and
     * vice versa.
     */
    public static void pause()
    {
        try {
            Thread.sleep(20); // pause for 20 ms
        } catch(Exception e) {
            System.out.println(e);
            e.printStackTrace();
        }
    }
    
    /** Creates a new instance of BallTest */
    public BallTest() {
        super("Bouncing Ball");  // set frame name
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        setSize(WINDOW_WIDTH,WINDOW_HEIGHT);
        setLayout( new BorderLayout() );
        ballPanel = new BallPanel(WINDOW_WIDTH,WINDOW_HEIGHT);
        add(ballPanel);
        center(this);
        setVisible(true);
        
        // infinite animation loop, program halts when window is closed.
        while (true) {
            pause(); 
            ballPanel.move();
            ballPanel.repaint();
        }
        
    }
    
    /** Helper routine to center a frame on the screen (will cause problems if
        frame is bigger than the screen!)
     */
    public static void center(JFrame frame) {
        GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
        Point center = ge.getCenterPoint();
        
        int w = frame.getWidth();
        int h = frame.getHeight();
        
        int x = center.x - w/2, y = center.y - h/2;
        frame.setBounds(x, y, w, h);
        frame.validate();
    }
    
    public static void main(String[] args)
    {
        BallTest t = new BallTest();
    }
    
}



Is This A Good Question/Topic? 0
  • +

Replies To: GUI Gone Wild!

#2 n8wxs  Icon User is offline

  • --... ...-- -.. . -. ---.. .-- -..- ...
  • member icon

Reputation: 972
  • View blog
  • Posts: 3,878
  • Joined: 07-January 08

Re: GUI Gone Wild!

Posted 09 February 2009 - 07:35 PM

Every move generates a new display!
public class Ball {
...
   public void move() {
	   BallTest bt = new BallTest();
...


Was This Post Helpful? 1
  • +
  • -

#3 NeoTifa  Icon User is offline

  • Whorediot
  • member icon





Reputation: 2584
  • View blog
  • Posts: 15,612
  • Joined: 24-September 08

Re: GUI Gone Wild!

Posted 10 February 2009 - 10:40 AM

Crap, you're right. Thanks!
Was This Post Helpful? 0
  • +
  • -

#4 NeoTifa  Icon User is offline

  • Whorediot
  • member icon





Reputation: 2584
  • View blog
  • Posts: 15,612
  • Joined: 24-September 08

Re: GUI Gone Wild!

Posted 14 February 2009 - 08:23 AM

Okay well, I moved it to the top of the class.

The result? :

init:
deps-jar:
compile:
run:
Exception in thread "main" java.lang.StackOverflowError
at sun.awt.Win32GraphicsConfig.getBounds(Native Method)
at sun.awt.Win32GraphicsConfig.getBounds(Win32GraphicsConfig.java:295)
at java.awt.window.init(window.java:284)
at java.awt.window.<init>(window.java:318)
at java.awt.Frame.<init>(Frame.java:419)
at javax.swing.JFrame.<init>(JFrame.java:194)
at cs241lab5.BallTest.<init>(BallTest.java:52)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>(BallTest.java:56)
at cs241lab5.Ball.<init>(Ball.java:22)
at cs241lab5.BallPanel.<init>(BallPanel.java:15)
at cs241lab5.BallTest.<init>
Was This Post Helpful? 0
  • +
  • -

#5 skaoth  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 91
  • View blog
  • Posts: 601
  • Joined: 07-November 07

Re: GUI Gone Wild!

Posted 14 February 2009 - 03:21 PM

Got this to work (I think) by making a couple of changes

BallTest.java
public class BallTest extends JFrame {
...
public void move() {
	 // infinite animation loop, program halts when window is closed.
	 while (true) {
		pause();
		ballPanel.move();
		ballPanel.repaint();
	}
}

public static BallTest bt = null;
public static void main(String[] args)
{
	bt = new BallTest();
	bt.move();
}



ball.java
public void move() {
	   

		// If ball is approaching a wall, reverse direction
		if (xCoord < (0 - run) || xCoord > (BallTest.bt.getWidth() - width)) {
			run = -run;
		}

	 if (yCoord < (0 - rise) || yCoord > (BallTest.bt.getHeight() - height)) {
			rise = -rise;
		}

		// "Move" ball according to values in rise and run
		xCoord += run;
		yCoord += rise;



   }//End move method



However, its probably a better idea to pass in the size of the screen to what ever object that need it.
Was This Post Helpful? 0
  • +
  • -

#6 pr4y  Icon User is offline

  • Location: 127.0.0.1
  • member icon

Reputation: 35
  • View blog
  • Posts: 621
  • Joined: 19-September 08

Re: GUI Gone Wild!

Posted 14 February 2009 - 03:34 PM

:code:

That error output hurts my eyes.
Was This Post Helpful? 0
  • +
  • -

#7 baavgai  Icon User is offline

  • Dreaming Coder
  • member icon

Reputation: 5780
  • View blog
  • Posts: 12,594
  • Joined: 16-October 07

Re: GUI Gone Wild!

Posted 14 February 2009 - 04:28 PM

Repetition should be removed with prejudice. All those set methods in ball should be private; only expose what you need to. Better yet, they shouldn't exist at all.

Here's a cleaner version.
public class Ball {
	private int xCoord;
	private int yCoord;
	private int height;
	private int width;
	private int rise;
	private int run;
	private Color color;

	public Ball() {
		Random rand = new Random();
		xCoord = getRandRange(rand, 0, 50);
		yCoord = getRandRange(rand, 0, 50);
		height = getRandRange(rand, 10, 20);
		width = getRandRange(rand, 10, 20);
		rise = getRandRange(rand, 0, 10);
		run = getRandRange(rand, 0, 10);
		color = new Color(
			getRandRange(rand, 0, 254), 
			getRandRange(rand, 0, 254), 
			getRandRange(rand, 0, 254)
			);
	}
	
	private int getRandRange(Random rand, int begin, int end) {
		return rand.nextInt((end-begin)+1) + begin;
	}
   
	public int getXCoord() { return xCoord; }
	public int getYCoord() { return yCoord; }
	public int getHeight() { return height; }
	public int getWidth() { return width; }
	public int getRise() { return rise; }
	public int getRun() { return run; }
	public Color getColor() { return color; }

	public void paintComponent (Graphics g) {
		g.setColor(color);
		g.fillOval(xCoord, yCoord, width, height);
	}

	// pass the dimensions.
	// Best to pass the least info needed
	public void move(int vpWidth, int vpHeight) {
		if (xCoord < (0 - run) || xCoord > (vpWidth - width)) { 
			run = -run; 
		}
		  
		if (yCoord < (0 - rise) || yCoord > (vpHeight - height)) { 
			rise = -rise; 
		}
		xCoord += run;
		yCoord += rise;
	}
}



An addition I'd add to ball, re zero the thing if it's way beyond the edge. It's possible you can get lost if the frame resized. The non zero edge doesn't allow for rise and run, which could be a bug.

Hope this helps.
Was This Post Helpful? 0
  • +
  • -

#8 Locke  Icon User is offline

  • Sarcasm Extraordinaire!
  • member icon

Reputation: 520
  • View blog
  • Posts: 5,596
  • Joined: 20-March 08

Re: GUI Gone Wild!

Posted 14 February 2009 - 06:50 PM

View Postpr4y, on 14 Feb, 2009 - 04:34 PM, said:

:code:

That error output hurts my eyes.


The output is really a lot shorter than that, if you look at it, it eventually repeats the same error over and over again, about 100 times.
Was This Post Helpful? 0
  • +
  • -

#9 NeoTifa  Icon User is offline

  • Whorediot
  • member icon





Reputation: 2584
  • View blog
  • Posts: 15,612
  • Joined: 24-September 08

Re: GUI Gone Wild!

Posted 14 February 2009 - 08:27 PM

300 times actally. I ran outta space :P
Was This Post Helpful? 0
  • +
  • -

#10 Locke  Icon User is offline

  • Sarcasm Extraordinaire!
  • member icon

Reputation: 520
  • View blog
  • Posts: 5,596
  • Joined: 20-March 08

Re: GUI Gone Wild!

Posted 14 February 2009 - 10:15 PM

I didn't actually count. But that's interesting that it throws that error THAT MANY times. <_<

This post has been edited by Locke: 14 February 2009 - 10:16 PM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1