if(lineElement.getEndOffset() + 1 >= buffer.getLength())
if(lineElement.getEndOffset() >= buffer.getLength())
	public void actionPerformed(ActionEvent evt)	{		View view = getView(evt);		Buffer buffer = view.getBuffer();		Element map = buffer.getDefaultRootElement();		Element lineElement = map.getElement(map.getElementIndex(			view.getTextArea().getCaretPosition()));		if(lineElement.getEndOffset() + 1 >= buffer.getLength())		{			view.getToolkit().beep();			return;		}		try		{			buffer.remove(lineElement.getEndOffset()-1,1);		}		catch(BadLocationException bl)		{			bl.printStackTrace();		}	}