Changeset 2891 in josm for trunk/src/org
- Timestamp:
- 2010-01-25T15:30:51+01:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/coor/LatLon.java
r2845 r2891 34 34 private static DecimalFormat cDmsMinuteFormatter = new DecimalFormat("00"); 35 35 private static DecimalFormat cDmsSecondFormatter = new DecimalFormat("00.0"); 36 private static DecimalFormat cDdFormatter = new DecimalFormat("###0.0000 ");36 private static DecimalFormat cDdFormatter = new DecimalFormat("###0.00000"); 37 37 38 38 /** … … 56 56 } 57 57 58 /** 59 * Replies the coordinate in degrees/minutes/seconds format 60 */ 58 61 public static String dms(double pCoordinate) { 59 62 -
trunk/src/org/openstreetmap/josm/gui/download/BookmarkSelection.java
r2626 r2891 17 17 import javax.swing.JPanel; 18 18 import javax.swing.JScrollPane; 19 import javax.swing.JTextArea; 19 20 import javax.swing.SwingUtilities; 20 21 import javax.swing.event.ListSelectionEvent; … … 49 50 /** displays information about the current download area */ 50 51 private JMultilineLabel lblCurrentDownloadArea; 52 final private JTextArea bboxDisplay = new JTextArea(); 51 53 /** the add action */ 52 54 private AddAction actAdd; … … 85 87 GridBagConstraints gc = new GridBagConstraints(); 86 88 gc.anchor = GridBagConstraints.NORTHWEST; 87 gc.fill = GridBagConstraints.BOTH;88 gc.weightx = 1.0;89 gc.weighty = 1.0;90 89 gc.insets = new Insets(5,5,5,5); 91 92 90 pnl.add(lblCurrentDownloadArea = new JMultilineLabel(""), gc); 91 92 gc.weightx = 1.0; 93 gc.weighty = 1.0; 94 bboxDisplay.setEditable(false); 95 bboxDisplay.setBackground(pnl.getBackground()); 96 bboxDisplay.addFocusListener(new BoundingBoxSelection.SelectAllOnFocusHandler(bboxDisplay)); 97 pnl.add(bboxDisplay, gc); 93 98 94 99 gc.anchor = GridBagConstraints.NORTHEAST; … … 147 152 lblCurrentDownloadArea.setText(tr("<html>There is currently no download area selected.</html>")); 148 153 } else { 149 lblCurrentDownloadArea.setText(tr("<html><strong>Current download area</strong> (minlat,minlon, maxlat, maxlon): {0}, {1}, {2}, {3}</html>", 150 currentArea.getMin().latToString(CoordinateFormat.DECIMAL_DEGREES), 151 currentArea.getMin().lonToString(CoordinateFormat.DECIMAL_DEGREES), 152 currentArea.getMax().latToString(CoordinateFormat.DECIMAL_DEGREES), 154 lblCurrentDownloadArea.setText(tr("<html><strong>Current download area</strong> (minlat,minlon, maxlat, maxlon): </html>")); 155 bboxDisplay.setText( 156 currentArea.getMin().latToString(CoordinateFormat.DECIMAL_DEGREES)+","+ 157 currentArea.getMin().lonToString(CoordinateFormat.DECIMAL_DEGREES)+","+ 158 currentArea.getMax().latToString(CoordinateFormat.DECIMAL_DEGREES)+","+ 153 159 currentArea.getMax().lonToString(CoordinateFormat.DECIMAL_DEGREES) 154 )155 160 ); 156 161 }
Note:
See TracChangeset
for help on using the changeset viewer.