int lineNo = map.getElementIndex(view.getTextArea() .getCaretPosition());
int lineNo = view.getTextArea().getCaretLine();
	public void actionPerformed(ActionEvent evt)	{		View view = getView(evt);		if(!view.getTextArea().isEditable())		{			view.getToolkit().beep();			return;		}		Buffer buffer = view.getBuffer();		Element map = buffer.getDefaultRootElement();		int lineNo = map.getElementIndex(view.getTextArea()			.getCaretPosition());		int start = map.getElement(buffer.locateParagraphStart(lineNo))			.getStartOffset();		int end = map.getElement(buffer.locateParagraphEnd(lineNo))			.getEndOffset() - 1;		try		{			buffer.remove(start,end - start);		}		catch(BadLocationException bl)		{		}	}