Changeset 10938 in josm for trunk/src/org/openstreetmap/josm/gui/layer/geoimage
- Timestamp:
- 2016-09-03T12:37:39+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/CorrelateGpxWithImages.java
r10647 r10938 342 342 */ 343 343 private class SetOffsetActionListener implements ActionListener { 344 private JPanel panel;345 private JLabel lbExifTime;346 private JosmTextField tfGpsTime;347 private JosmComboBox<String> cbTimezones;348 private ImageDisplay imgDisp;349 private JList<String> imgList;350 344 351 345 @Override … … 353 347 SimpleDateFormat dateFormat = (SimpleDateFormat) DateUtils.getDateTimeFormat(DateFormat.SHORT, DateFormat.MEDIUM); 354 348 355 panel = new JPanel(new BorderLayout());349 JPanel panel = new JPanel(new BorderLayout()); 356 350 panel.add(new JLabel(tr("<html>Take a photo of your GPS receiver while it displays the time.<br>" 357 351 + "Display that photo here.<br>" … … 359 353 BorderLayout.NORTH); 360 354 361 imgDisp = new ImageDisplay();355 ImageDisplay imgDisp = new ImageDisplay(); 362 356 imgDisp.setPreferredSize(new Dimension(300, 225)); 363 357 panel.add(imgDisp, BorderLayout.CENTER); … … 373 367 panelTf.add(new JLabel(tr("Photo time (from exif):")), gc); 374 368 375 lbExifTime = new JLabel();369 JLabel lbExifTime = new JLabel(); 376 370 gc.gridx = 1; 377 371 gc.weightx = 1.0; … … 388 382 panelTf.add(new JLabel(tr("Gps time (read from the above photo): ")), gc); 389 383 390 tfGpsTime = new JosmTextField(12);384 JosmTextField tfGpsTime = new JosmTextField(12); 391 385 tfGpsTime.setEnabled(false); 392 386 tfGpsTime.setMinimumSize(new Dimension(155, tfGpsTime.getMinimumSize().height)); … … 422 416 Collections.sort(vtTimezones); 423 417 424 cbTimezones = new JosmComboBox<>(vtTimezones.toArray(new String[0]));418 JosmComboBox<String> cbTimezones = new JosmComboBox<>(vtTimezones.toArray(new String[0])); 425 419 426 420 String tzId = Main.pref.get("geoimage.timezoneid", ""); … … 446 440 JPanel panelLst = new JPanel(new BorderLayout()); 447 441 448 imgList = new JList<>(new AbstractListModel<String>() {442 JList<String> imgList = new JList<>(new AbstractListModel<String>() { 449 443 @Override 450 444 public String getElementAt(int i) {
Note:
See TracChangeset
for help on using the changeset viewer.