]> gitweb.fperrin.net Git - GpsPrune.git/blobdiff - tim/prune/function/PasteCoordinates.java
Version 16, February 2014
[GpsPrune.git] / tim / prune / function / PasteCoordinates.java
index 0228014deb4810f025ba3d340247fe4bc920004b..c9b2ad1c7ff3f74da6e8162fbb84d8fa886c1e42 100644 (file)
@@ -43,7 +43,7 @@ public class PasteCoordinates extends GenericFunction
        private JTextField _nameField = null;
        private JTextField _coordField = null;
        private JButton _okButton = null;
-       private JComboBox _altUnitsDropDown;
+       private JComboBox<String> _altUnitsDropDown;
 
 
        /**
@@ -122,7 +122,7 @@ public class PasteCoordinates extends GenericFunction
                formatLabel.setHorizontalAlignment(SwingConstants.RIGHT);
                grid.add(formatLabel);
                final String[] altunits = {I18nManager.getText("units.metres"), I18nManager.getText("units.feet")};
-               _altUnitsDropDown = new JComboBox(altunits);
+               _altUnitsDropDown = new JComboBox<String>(altunits);
                grid.add(_altUnitsDropDown);
                // Waypoint name
                JLabel nameLabel = new JLabel(I18nManager.getText("dialog.pointnameedit.name"));