public void mouseDragged(MouseEvent e){
    	if(dragging){
    		e.getComponent().setBounds(new Rectangle(startBounds.x+e.getLocationOnScreen().x-startPoint.x,
                    startBounds.y+e.getLocationOnScreen().y-startPoint.y, startBounds.width, startBounds.height));
            if(e.getComponent() instanceof JComponent){
            	((JComponent)e.getComponent()).putClientProperty(DRAGGED_MARK,true);
            }
        }
    }