@Override
	public void run() {
		
		Graphics g = getGraphics();
		int x1=22, y1=22, dx=44, dy=66;
		//g.drawLine(x1,y1,x1+dx,y1+dy);
	    
		
			 for(int i = 0; i<100; i++)
				{
					x1=x1+i; 
					y1=y1+i;
					
					System.out.println(i);
					g.drawLine(x1,y1,x1+dx,y1+dy);
					
					//g.fillRect(x1, y1, x1+dx,y1+dy);  
					//repaint();
					    try
					    {
						thr.sleep(1000);
					    }
					    catch(InterruptedException ie)
					    {
						stop();
					    }	
										
				}
	      
		   
		  
		
	}