From: Niki Roo Date: Fri, 10 Apr 2020 07:57:31 +0000 (+0200) Subject: default search/filter to realtime X-Git-Tag: fanfix-swing-0.0.1~36 X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=30c4d6ed834b52aa4ce4b252295c41b63375ecba;p=fanfix-swing.git default search/filter to realtime --- diff --git a/src/be/nikiroo/fanfix_swing/gui/SearchBar.java b/src/be/nikiroo/fanfix_swing/gui/SearchBar.java index 2dd45879..eb0c5876 100644 --- a/src/be/nikiroo/fanfix_swing/gui/SearchBar.java +++ b/src/be/nikiroo/fanfix_swing/gui/SearchBar.java @@ -37,6 +37,9 @@ public class SearchBar extends ListenerPanel { public SearchBar() { setLayout(new BorderLayout()); + // TODO: option for this + realTime = true; + search = new JButton(IconGenerator.get(Icon.search, Size.x16)); UiHelper.setButtonPressed(search, realTime); search.addActionListener(new ActionListener() {