public void promptFind() {
		Object findObj = JOptionPane.showInputDialog(frame,
				"What would you like to find? ", "Find All",
				JOptionPane.QUESTION_MESSAGE, null, null, getSelectedText());
		if (findObj != null) {
			String find = findObj.toString();
			if (!find.equals("")) {
				if (getSelectedText() != null && getSelectedText().equals(find)) {
					clearHighlights();
				} else {
					getHighlighter().removeAllHighlights();
				}
				String toSearch = getText();
				int i = 0;
				while (i < toSearch.length() - find.length() + 1) {
					int newIndex = toSearch.indexOf(find, i);
					if (newIndex == -1) {
						break;
					} else {
						highlight(newIndex, newIndex + find.length());
						i = newIndex + find.length() - 1;
					}

				}
			}
		}
	}