int dot = view.getTextArea().getCaretPosition();
int dot = textArea.getCaretPosition();
	public void actionPerformed(ActionEvent evt)	{		View view = getView(evt);		Buffer buffer = view.getBuffer();		String openBrackets = (String)buffer			.getProperty("openBrackets");		String closeBrackets = (String)buffer			.getProperty("closeBrackets");		if(closeBrackets.length() != openBrackets.length())		{			view.getToolkit().beep();			return;		}		int dot = view.getTextArea().getCaretPosition();		if(dot != 0)			dot--;		char bracket;		try		{			bracket = buffer.getText(dot,1).charAt(0);			int index = openBrackets.indexOf(bracket);			if(index != -1)			{				char closeBracket = closeBrackets.charAt(index);				int offset = SyntaxUtilities.locateBracketForward(					buffer,dot,bracket,closeBracket);				if(offset == -1)					view.getToolkit().beep();				else					view.getTextArea().setCaretPosition(						offset + 1);				return;			}			else			{				index = closeBrackets.indexOf(bracket);				if(index == -1)				{					view.getToolkit().beep();					return;				}				char openBracket = openBrackets.charAt(index);				int offset = SyntaxUtilities.locateBracketBackward(					buffer,dot,openBracket,bracket);				if(offset == -1)					view.getToolkit().beep();				else					view.getTextArea().setCaretPosition(						offset + 1);			}		}		catch(BadLocationException bl)		{		}	}