boolean retVal = replace(view,buffer,selStart, textArea.getSelectionEnd());
int selEnd = textArea.getSelectionEnd(); if(selStart == selEnd) { view.getToolkit().beep(); return false; } boolean retVal = replace(view,buffer,selStart,selEnd);
	public static boolean replace(View view, Buffer buffer)	{		JEditTextArea textArea = view.getTextArea();		int selStart = textArea.getSelectionStart();		boolean retVal = replace(view,buffer,selStart,			textArea.getSelectionEnd());		textArea.setSelectionStart(selStart);		return retVal;	}