public void run() {
			while (true) 
			{
				int location1 = numberGen.nextInt(700);
				int location2 = numberGen.nextInt(700);
				
				if((location1 > 50 && location1 < 450) && (location2 > 50 && location2 < 450))
				{
					ball12.fillOval(location1, location2, 10, 10);
					//repaint();
				}
				else
				{
					try
					{
						Thread.sleep(getSpeedOfBall());
					}
					catch(InterruptedException e)
					{
						System.exit(0);
					}
				}
			}

		}