public void mousePressed(MouseEvent e){
		Dimension size = fComponent.getSize();
		if( e.getX() >= size.width-7 && e.getY() >= size.height-7
				&& getSelectionState()==2 ) {
			if(DEBUG)System.out.println("ImageView: grow!!! Size="+fWidth+"x"+fHeight);
			Point loc = fComponent.getLocationOnScreen();
			fGrowBase = new Point(loc.x+e.getX() - fWidth,
					loc.y+e.getY() - fHeight);
		} else {
			fGrowBase = null;
			JTextComponent comp = (JTextComponent)fContainer;
			int start = fElement.getStartOffset();
			int end = fElement.getEndOffset();
			int mark = comp.getCaret().getMark();
			int dot  = comp.getCaret().getDot();
			if( e.isShiftDown() ) {
				if( mark <= start )
					comp.moveCaretPosition(end);
				else
					comp.moveCaretPosition(start);
			} else {
				if( mark!=start )
					comp.setCaretPosition(start);
				if( dot!=end )
					comp.moveCaretPosition(end);
			}
		}
	}