view.getTextArea().select(offset,offset + 1);
view.getTextArea().setCaretPosition(offset + 1);
	private void scanForward(Buffer buffer, View view, int dot,		char openBracket, char closeBracket)		throws BadLocationException	{		int count;		Element map = buffer.getDefaultRootElement();		// check current line		int lineNo = map.getElementIndex(dot);		Element lineElement = map.getElement(lineNo);		int start = lineElement.getStartOffset();		int end = lineElement.getEndOffset();		int offset = scanForwardLine(buffer.getText(dot + 1,end			- (dot + 1)),openBracket,closeBracket,0);		count = -offset - 1;		if(offset >= 0)		{			offset += (dot + 1);			view.getTextArea().select(offset,offset + 1);			return;		}		// check following lines		for(int i = lineNo + 1; i < map.getElementCount(); i++)		{			lineElement = map.getElement(i);			start = lineElement.getStartOffset();			offset = scanForwardLine(buffer.getText(start,				lineElement.getEndOffset() - start),				openBracket,closeBracket,count);			count = -offset - 1;			if(offset >= 0)			{				offset += start;				view.getTextArea().select(offset,offset + 1);				return;			}		}		// not found		view.getToolkit().beep();	}