int selectionStart = textArea.getSelectionStart(); int selectionEnd = textArea.getSelectionEnd();
	public void actionPerformed(ActionEvent evt)	{		View view = getView(evt);		JEditTextArea textArea = view.getTextArea();		Buffer buffer = view.getBuffer();		String comment = (String)buffer.getProperty("blockComment");		if(comment == null)		{			view.getToolkit().beep();			return;		}		comment = comment + ' ';		int selectionStart = textArea.getSelectionStart();		int selectionEnd = textArea.getSelectionEnd();		int startLine = textArea.getSelectionStartLine();		int endLine = textArea.getSelectionEndLine();		Element map = buffer.getDefaultRootElement();		buffer.beginCompoundEdit();		try		{			buffer.insertString(selectionStart,comment,null);			for(int i = startLine + 1; i <= endLine; i++)			{				buffer.insertString(map.getElement(i)					.getStartOffset(),comment,null);			}		}		catch(BadLocationException bl)		{			Log.log(Log.ERROR,this,bl);		}		finally		{			buffer.endCompoundEdit();		}		textArea.select(textArea.getCaretPosition(),			textArea.getCaretPosition());	}