@Override
	public void beginResizingFrame(JComponent f, int direction) {
		//System.out.println("beginResizingFrame");
		resizeDirection = direction;
		startingX = f.getLocation().x;
		startingWidth = f.getWidth();
		startingY = f.getLocation().y;
		startingHeight = f.getHeight();
		super.beginResizingFrame(f,direction);
	}