Changeset 27426 in osm for applications/editors/josm/plugins/infomode
- Timestamp:
- 2012-01-09T19:26:49+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/infomode/src/org/openstreetmap/josm/plugins/infomode/InfoPanel.java
r26503 r27426 37 37 private JLabel label5=new JLabel(); 38 38 private JLabel label6=new JLabel(); 39 private JButton but1 = new JButton(tr(" Hide this"));40 private JButton but2 = new JButton(tr(" Hide this&older"));39 private JButton but1 = new JButton(tr("Delete this")); 40 private JButton but2 = new JButton(tr("Delete this&older")); 41 41 42 42 public InfoPanel() { … … 101 101 this.tracks=tracks; 102 102 this.trk=trk; 103 if (wp.time==0.0) label1.setText(tr("No timestamp")); 104 else label1.setText(df.format(wp.getTime())); 103 if (wp.time==0.0) { label1.setText(tr("No timestamp")); 104 but2.setVisible(false); 105 } else { 106 label1.setText(df.format(wp.getTime())); 107 but2.setVisible(true); 108 } 105 109 if (vel>0) label2.setText(String.format("%.1f "+tr("km/h"), vel)); 106 110 else label2.setText(null);
Note:
See TracChangeset
for help on using the changeset viewer.