void find (boolean forward)
	{
		JTextComponent textComponent = (forEditor) ? frame.getEditor() : frame.getOutputArea();
		String findText = findTF.getText();
		if (findText.equals("")) return;
		String text = textComponent.getText();
		if (ignoreCaseCB.isSelected())
		{
			findText = findText.toLowerCase();
			text = text.toLowerCase();
		}
		int pos = -1;
		if (forward)
		{
			pos = text.indexOf (findText, searchStart);
			if (pos == -1) pos = text.indexOf (findText);
		}
		else
		{
			pos = text.lastIndexOf (findText, searchStart);
			if (pos == -1) pos = text.lastIndexOf (findText);
		}
		textComponent.setCaretPosition ((pos==-1) ? 0 : pos);
		textComponent.moveCaretPosition ((pos==-1) ? 0 : pos + findText.length());
		scrollTo (textComponent, (pos==-1) ? 0 : pos, 0.25);
	}