textArea.replaceSelection("\n");
textArea.setSelectedText("\n");
        public void actionPerformed(ActionEvent evt)        {                View view = getView(evt);                Buffer buffer = view.getBuffer();                JEditTextArea textArea = view.getTextArea();		textArea.replaceSelection("\n");                Mode mode = buffer.getMode();		int selStart = textArea.getSelectionStart();		int selEnd = textArea.getSelectionEnd();                if(selStart == selEnd			&& "on".equals(buffer.getProperty("indentOnEnter")))		{			mode.indentLine(buffer,view,selStart);			/*			Element map = buffer.getDefaultRootElement();			Element lineElement = map.getElement(				map.getElementOffset(selStart));			textArea.setCaretPosition(lineElement.getEndOffset() - 1);			*/                }        }