public void run() 
		{
			while(pelotaIniciada) 
			{
				try {
					Thread.sleep(16);
			    } catch( Exception e) 
			    {
					System.out.println("Hilo se desperto anticipadamente");
				}
					
				    int antX = (int) laPelota.getX();
				    int antY = (int) laPelota.getY();
					int x, y;
					x = antX + incX;
					if( x > panel.getWidth() ) {
					x = rnd.nextInt( 10 );
					}
					if (x + tam > panel.getWidth() || x < 0) 
					incX = -incX;
					y = antY + incY;
					if( x > panel.getHeight() ) {
					y = rnd.nextInt(10);
					}
					if (y + tam > panel.getHeight() || y < 0) 
					incY = -incY; 
					laPelota.setFrame(x, y, tam, tam);
					panel.repaint();
			}
		}