Changeset 9390 in josm for trunk/src


Ignore:
Timestamp:
2016-01-10T15:01:10+01:00 (4 years ago)
Author:
simon04
Message:

see #12224 - Search menu-items/presets: allow to select exacly 1 item

Location:
trunk/src/org/openstreetmap/josm/gui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/MenuItemSearchDialog.java

    r9389 r9390  
    1111
    1212import javax.swing.DefaultListCellRenderer;
    13 import javax.swing.DefaultListSelectionModel;
    1413import javax.swing.JLabel;
    1514import javax.swing.JList;
     
    7574            this.menu = menu;
    7675            lsResult.setCellRenderer(new CellRenderer());
    77             lsResult.setSelectionModel(new DefaultListSelectionModel() {
    78 
    79             });
    8076        }
    8177
  • trunk/src/org/openstreetmap/josm/gui/widgets/SearchTextResultListPanel.java

    r9372 r9390  
    1515import javax.swing.JPanel;
    1616import javax.swing.JScrollPane;
     17import javax.swing.ListSelectionModel;
    1718import javax.swing.event.DocumentEvent;
    1819import javax.swing.event.DocumentListener;
     
    8081
    8182        lsResult = new JList<>(lsResultModel);
     83        lsResult.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    8284        lsResult.addMouseListener(new MouseAdapter() {
    8385            @Override
Note: See TracChangeset for help on using the changeset viewer.