public void paintComponent(Graphics g) {

		super.paintComponent(g);
		Graphics2D g2 = (Graphics2D) g;
		for (int i = 0; i < balls.size(); i++) {

			Ball b = (Ball) balls.get(i);
			b.draw(g2);
		}

	}