Changeset 433 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2007-10-27T09:10:36+02:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/AutoCompleteComboBox.java
r415 r433 51 51 super.remove(0, getLength()); 52 52 super.insertString(0, item.toString(), a); 53 // select the completed part 54 JTextComponent editor = (JTextComponent)comboBox.getEditor().getEditorComponent(); 55 editor.setSelectionStart(offs + str.length()); 56 editor.setSelectionEnd(getLength()); 53 57 54 } 55 56 // select the completed part 57 JTextComponent editor = (JTextComponent)comboBox.getEditor().getEditorComponent(); 58 editor.setSelectionStart(offs + str.length()); 59 editor.setSelectionEnd(getLength()); 60 58 61 setSelectedItem(item); 59 62 }
Note:
See TracChangeset
for help on using the changeset viewer.