{ if(selectionStart != selectionEnd) setCaretPosition(selectionStart); else setCaretPosition(caret); }
setCaretPosition(caret);
	public void goToPrevCharacter(boolean select)	{		int caret = getCaretPosition();		if(caret == 0)			getToolkit().beep();		else		{			caret--;			if(select)				select(getMarkPosition(),caret);			else			{				if(selectionStart != selectionEnd)					setCaretPosition(selectionStart);				else					setCaretPosition(caret);			}		}	}