Changeset 16917 in josm
- Timestamp:
- 2020-08-23T17:42:30+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/download/DownloadDialog.java
r16893 r16917 24 24 25 25 import javax.swing.AbstractAction; 26 import javax.swing.Box; 26 27 import javax.swing.Icon; 27 28 import javax.swing.JButton; … … 164 165 cbStartup.addActionListener(e -> DOWNLOAD_AUTORUN.put(cbStartup.isSelected())); 165 166 167 JLabel iconZoomToDownloadedData = new JLabel(ImageProvider.get("dialogs/autoscale/data", ImageProvider.ImageSizes.SMALLICON)); 166 168 cbZoomToDownloadedData = new JCheckBox(tr("Zoom to downloaded data")); 167 169 cbZoomToDownloadedData.setToolTipText(tr("Select to zoom to entire newly downloaded data.")); 168 170 169 mainPanel.add(cbStartup, GBC.std().anchor(GBC.WEST).insets(15, 5, 5, 5)); 170 mainPanel.add(cbZoomToDownloadedData, GBC.std().anchor(GBC.WEST).insets(15, 5, 5, 5)); 171 JPanel checkboxPanel = new JPanel(new FlowLayout()); 172 checkboxPanel.add(cbStartup); 173 checkboxPanel.add(Box.createHorizontalStrut(6)); 174 checkboxPanel.add(iconZoomToDownloadedData); 175 checkboxPanel.add(cbZoomToDownloadedData); 176 mainPanel.add(checkboxPanel, GBC.eol()); 171 177 172 178 ExpertToggleAction.addVisibilitySwitcher(cbZoomToDownloadedData); 173 174 mainPanel.add(new JLabel(), GBC.eol()); // place info label at a new line 179 ExpertToggleAction.addVisibilitySwitcher(iconZoomToDownloadedData); 180 175 181 JLabel infoLabel = new JLabel( 176 182 tr("Use left click&drag to select area, arrows or right mouse button to scroll map, wheel or +/- to zoom."));
Note:
See TracChangeset
for help on using the changeset viewer.