On the Mac use a cool client property which makes the text field look very search-like.

by mrs, 08 Nov, 2009 11:58 AM
1030 1033  
136136     return bidBar;
137137   }
138138 
139   private JComponent establishSearchBox(final JTabManager inAction) { /**
140      * Add selection/search bar.
139   /**
140    * Add selection/search bar.
141    * @param inAction - The action to be triggered by the search/select process.
142    * @return - A component containing the search / select field.
141143    */
144   private JComponent establishSearchBox(final JTabManager inAction) {
142145     DocumentListener selectListener = new DocumentListener() {
143146         public void insertUpdate(DocumentEvent de) {
144147         }
------
154157         }
155158       };
156159     mSelectBox.addActionListener(doSearch);
160     mSelectBox.putClientProperty("JTextField.variant", "search");
161 
157162     JPanel compact = new JPanel();
158163     compact.setLayout(new BoxLayout(compact, BoxLayout.X_AXIS));
159164     compact.setPreferredSize(new Dimension(100, 24));