public boolean FindNext() {
		String s, str;
		int a = 0;

		s = window.GetText();

		if (jtf.getText().equals("") || jtf.getText() == null) {
			Utils.userMessage("Nothing to search for", "Nothing to search for",
					2);
			return false;
		} else {
			findstr = jtf.getText();
			addItemToBox();
		}

		if (ignoreCase) {
			s = s.toLowerCase();
			str = findstr.toLowerCase();
		} else {
			str = findstr;
		}

		if (wholeWord) {
			str = " " + str + " ";
		} else {
			str.trim();
		}

		if (str != null) {
			a = str.length();
			pos = s.indexOf(str, window.getCaretPosition());
			window.RequestFocus();

			if (pos == -1) {
				if (wrap) {
					pos = s.indexOf(findstr, 0);
					window.Select(pos, pos + findstr.length());
				} else {
					Utils.userMessage("Not Found", findstr + " not found", 1);
					return false;
				}
			} else {
				window.Select(pos, pos + findstr.length());
			}

			return true;

		} else {
			if (!replaceAll) {
				Utils.userMessage("String not found", "String " + "'" + findstr
						+ "'" + " not found", 2);
			} else {
				Utils.userMessage("Finished", "Search and Replace finished "
						+ new String(Integer.toString(counter))
						+ " occurences replaced.", 2);
				counter = 0;
			}

			return false;
		}

		// return false;

	}