/** * Install a recent the searches popup menu returned by * {@link #createPopupMenu(JXSearchField)} on <code>searchField</code>. * Also registers an {@link ActionListener} on <code>searchField</code> * and adds the search string to the list of recent searches whenever a * {@link ActionEvent} is received. * * Uses {@link NativeSearchFieldSupport} to achieve compatibility with the native * search field support provided by the Mac Look And Feel since Mac OS 10.5. * * @param searchField * the search field to install a recent searches popup menu on */ public void install(JTextField searchField) { searchField.addActionListener(this); NativeSearchFieldSupport.setFindPopupMenu(searchField, createPopupMenu(searchField)); }
/** * Install a recent the searches popup menu returned by * {@link #createPopupMenu(JXSearchField)} on <code>searchField</code>. * Also registers an {@link ActionListener} on <code>searchField</code> * and adds the search string to the list of recent searches whenever a * {@link ActionEvent} is received. * * Uses {@link NativeSearchFieldSupport} to achieve compatibility with the native * search field support provided by the Mac Look And Feel since Mac OS 10.5. * * @param searchField * the search field to install a recent searches popup menu on */ public void install(JTextField searchField) { searchField.addActionListener(this); NativeSearchFieldSupport.setFindPopupMenu(searchField, createPopupMenu(searchField)); }
/** * Install a recent the searches popup menu returned by * {@link #createPopupMenu(JXSearchField)} on <code>searchField</code>. * Also registers an {@link ActionListener} on <code>searchField</code> * and adds the search string to the list of recent searches whenever a * {@link ActionEvent} is received. * * Uses {@link NativeSearchFieldSupport} to achieve compatibility with the native * search field support provided by the Mac Look And Feel since Mac OS 10.5. * * @param searchField * the search field to install a recent searches popup menu on */ public void install(JTextField searchField) { searchField.addActionListener(this); NativeSearchFieldSupport.setFindPopupMenu(searchField, createPopupMenu(searchField)); }
/** * Install a recent the searches popup menu returned by * {@link #createPopupMenu(JXSearchField)} on <code>searchField</code>. * Also registers an {@link ActionListener} on <code>searchField</code> * and adds the search string to the list of recent searches whenever a * {@link ActionEvent} is received. * * Uses {@link NativeSearchFieldSupport} to achieve compatibility with the native * search field support provided by the Mac Look And Feel since Mac OS 10.5. * * @param searchField * the search field to install a recent searches popup menu on */ public void install(JTextField searchField) { searchField.addActionListener(this); NativeSearchFieldSupport.setFindPopupMenu(searchField, createPopupMenu(searchField)); }