mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-14 07:47:12 -06:00
Theme Editor: show/hide highlighted matches when showing/hiding "find bar"
This commit is contained in:
@@ -72,6 +72,22 @@ class FlatFindReplaceBar
|
|||||||
return findField.requestFocusInWindow();
|
return findField.requestFocusInWindow();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void addNotify() {
|
||||||
|
super.addNotify();
|
||||||
|
|
||||||
|
// if showing bar, highlight matches in editor
|
||||||
|
find();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void removeNotify() {
|
||||||
|
super.removeNotify();
|
||||||
|
|
||||||
|
// if hiding bar, clear all highlighted matches in editor
|
||||||
|
SearchEngine.markAll( textArea, new SearchContext() );
|
||||||
|
}
|
||||||
|
|
||||||
private void findNext() {
|
private void findNext() {
|
||||||
context.setSearchForward( true );
|
context.setSearchForward( true );
|
||||||
find();
|
find();
|
||||||
|
|||||||
Reference in New Issue
Block a user