source:
josm/trunk/src/org/openstreetmap/josm/tools/PresetTextComparator.java@
1415
Last change on this file since 1415 was 1415, checked in by , 15 years ago | |
---|---|
File size: 318 bytes |
Line | |
---|---|
1 | package org.openstreetmap.josm.tools; |
2 | |
3 | import java.util.Comparator; |
4 | |
5 | import javax.swing.JMenuItem; |
6 | |
7 | public class PresetTextComparator implements Comparator<JMenuItem> { |
8 | //TODO add error checking and stuff |
9 | public int compare(JMenuItem arg0, JMenuItem arg1) { |
10 | return arg0.getText().compareTo(arg1.getText()); |
11 | } |
12 | |
13 | |
14 | } |
Note:
See TracBrowser
for help on using the repository browser.