|
@@ -226,7 +226,6 @@ public final class SwingSearchBar extends JPanel implements ActionListener,
|
226
|
226
|
@Override
|
227
|
227
|
public void search(final Direction direction, final String text,
|
228
|
228
|
final boolean caseSensitive) {
|
229
|
|
- boolean foundText;
|
230
|
229
|
wrapIndicator.setVisible(false);
|
231
|
230
|
|
232
|
231
|
final boolean up = Direction.UP == direction;
|
|
@@ -258,8 +257,7 @@ public final class SwingSearchBar extends JPanel implements ActionListener,
|
258
|
257
|
//found, select and return found
|
259
|
258
|
textPane.setScrollBarPosition(result.getEndLine());
|
260
|
259
|
textPane.setSelectedText(result);
|
261
|
|
- foundText = true;
|
262
|
|
- validator.setValidates(foundText);
|
|
260
|
+ validator.setValidates(true);
|
263
|
261
|
searchBox.checkError();
|
264
|
262
|
}
|
265
|
263
|
}
|