Changeset 4018 in josm for trunk/src/org/openstreetmap/josm/actions/search/SearchAction.java
- Timestamp:
- 2011-04-06T19:09:47+02:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/search/SearchAction.java
r4012 r4018 43 43 public class SearchAction extends JosmAction implements ParameterizedAction { 44 44 45 public static final int DEFAULT_SEARCH_HISTORY_SIZE = 1 0;45 public static final int DEFAULT_SEARCH_HISTORY_SIZE = 15; 46 46 47 47 private static final String SEARCH_EXPRESSION = "searchExpression"; … … 136 136 // -- prepare the combo box with the search expressions 137 137 // 138 JLabel label = new JLabel( initialValues instanceof Filter ? tr(" Please enter a filter string.") : tr("Please enter a search string."));138 JLabel label = new JLabel( initialValues instanceof Filter ? tr("Filter string:") : tr("Search string:")); 139 139 final HistoryComboBox hcbSearchString = new HistoryComboBox(); 140 140 hcbSearchString.setText(initialValues.text); … … 165 165 final JCheckBox regexSearch = new JCheckBox(tr("regular expression"), initialValues.regexSearch); 166 166 167 JPanel top = new JPanel(new GridBagLayout()); 168 top.add(label, GBC.std().insets(0, 0, 5, 0)); 169 top.add(hcbSearchString, GBC.eol().fill(GBC.HORIZONTAL)); 167 170 JPanel left = new JPanel(new GridBagLayout()); 168 left.add(label, GBC.eop());169 left.add(hcbSearchString, GBC.eop().fill(GBC.HORIZONTAL));170 171 left.add(replace, GBC.eol()); 171 172 left.add(add, GBC.eol()); … … 212 213 right.add(description); 213 214 214 final JPanel p = new JPanel(); 215 p.add(left); 216 p.add(right); 215 final JPanel p = new JPanel(new GridBagLayout()); 216 p.add(top, GBC.eol().fill(GBC.HORIZONTAL).insets(5, 5, 5, 0)); 217 p.add(left, GBC.std().anchor(GBC.NORTH).insets(5, 10, 10, 0)); 218 p.add(right, GBC.eol()); 217 219 ExtendedDialog dialog = new ExtendedDialog( 218 220 Main.parent,
Note:
See TracChangeset
for help on using the changeset viewer.