int lineNo = map.getElementIndex(textArea.getSelectionEnd());
int lineNo = textArea.getSelectionEnd();
	public void actionPerformed(ActionEvent evt)	{		View view = getView(evt);		Buffer buffer = view.getBuffer();		Element map = buffer.getDefaultRootElement();		JEditTextArea textArea = view.getTextArea();		int lineNo = map.getElementIndex(textArea.getSelectionEnd());		int start = map.getElement(buffer.locateParagraphStart(lineNo))			.getStartOffset();		Element endElement = map.getElement(buffer			.locateParagraphEnd(lineNo));		int end = endElement.getEndOffset() - 1;		textArea.select(Math.min(textArea.getSelectionStart(),start),end);	}