public void paintComponent(Graphics g)
	{	
		if(drag==true)
		{	
			if(startDragX-xMouse < 0 & startDragY- yMouse < 0)
			{
				dragRect = new Rectangle(startDragX,startDragY,xMouse-startDragX,yMouse-startDragY);
			}
			else if(startDragX-xMouse < 0 & yMouse - startDragY < 0)
			{
				dragRect = new Rectangle(startDragX,yMouse,xMouse-startDragX,startDragY-yMouse);
			}
			else if(xMouse-startDragX < 0 & startDragY- yMouse < 0)
			{
				dragRect = new Rectangle(xMouse,startDragY,startDragX-xMouse,yMouse-startDragY);
			}
			else if(xMouse-startDragX < 0 & yMouse - startDragY < 0)
			{
				dragRect = new Rectangle(xMouse,yMouse,startDragX-xMouse,startDragY-yMouse);
			}
			else {
				dragRect = new Rectangle(0,0,0,0);
			}
			g.setColor(new Color(0, 170, 255, 50));
			g.fillRect((int)dragRect.getX(), (int)dragRect.getY(), (int)dragRect.getWidth(), (int)dragRect.getHeight());
			g.setColor(new Color(0, 170, 255, 255));
			g.drawRect((int)dragRect.getX(), (int)dragRect.getY(), (int)dragRect.getWidth(), (int)dragRect.getHeight());
		}
	  
	}