Element lineElement = map.getElement(map.getElementIndex( view.getTextArea().getCaretPosition()));
Element lineElement = map.getElement(view.getTextArea().getCaretLine());
	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()));		int start = lineElement.getStartOffset();		int end = lineElement.getEndOffset();		try		{			String str = buffer.getText(start,end - start);			int whitespace = start + MiscUtilities				.getLeadingWhiteSpace(str);			view.getTextArea().setCaretPosition(whitespace);		}		catch(BadLocationException bl)		{		}	}