Changeset 2891 in josm for trunk/src/org/openstreetmap/josm/gui/download/BookmarkSelection.java
- Timestamp:
- 2010-01-25T15:30:51+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.