Hi,
I have a SearchableBar (associated with code editor) each in one tab of tabbed pane.
The search text of the bar from current pane should be shown by default, in the search bar of any other tab when enabled/changed.
I have implemented the same by storing the getSearchingText() under this listener
searchable.addSearchableListener(new SearchableListener () {
public void serachableEventFired(SearchableEvent arg0) {
searchStr = searchableBar.getSearchingText(); } });
and then setting the same text in
tabbedPane.addChangeListener(new ChangeListener() {
public void stateChanged(ChangedEvent e) {
searchable.setSearchingText(searchStr); }});
Though the search string got from last tab is correctly displayed in the new tab,
somehow the search event is simultaneously fired also in the new selected tab.
Can this search event firing be controlled (in fact, stopped)
and only the search text appears in the new tab, so that actual search
does not happen by itself but only when user wishes to do so.
Any help in this direction is appreciated.
Thanks