Ignore:
Timestamp:
2012-08-11T23:03:55+02:00 (12 years ago)
Author:
Don-vip
Message:

fix #7917 - Control the number of items displayed at once in all comboboxes (20 by default, configurable with gui.combobox.maximum-row-count)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/AbstractMergeAction.java

    r5233 r5429  
    1111import javax.swing.DefaultListCellRenderer;
    1212import javax.swing.Icon;
    13 import javax.swing.JComboBox;
    1413import javax.swing.JLabel;
    1514import javax.swing.JList;
     
    2019import org.openstreetmap.josm.gui.ExtendedDialog;
    2120import org.openstreetmap.josm.gui.layer.Layer;
     21import org.openstreetmap.josm.gui.widgets.JosmComboBox;
    2222import org.openstreetmap.josm.tools.GBC;
    2323import org.openstreetmap.josm.tools.Shortcut;
     
    5858
    5959    protected Layer askTargetLayer(List<Layer> targetLayers) {
    60         JComboBox layerList = new JComboBox();
     60        JosmComboBox layerList = new JosmComboBox();
    6161        layerList.setRenderer(new LayerListCellRenderer());
    6262        layerList.setModel(new DefaultComboBoxModel(targetLayers.toArray()));
Note: See TracChangeset for help on using the changeset viewer.