Changeset 8426 in josm for trunk/src/org/openstreetmap/josm/gui/history
- Timestamp:
- 2015-05-26T01:37:50+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/history/VersionInfoPanel.java
r8308 r8426 56 56 private JLabel lblSource; 57 57 private JLabel lblImageryUsed; 58 private JTextArea lblChangesetComment;59 private JTextArea lblChangesetSource;60 private JTextArea lblChangesetImageryUsed;58 private JTextArea texChangesetComment; 59 private JTextArea texChangesetSource; 60 private JTextArea texChangesetImageryUsed; 61 61 62 62 protected static JTextArea buildTextArea(String tooltip) { … … 76 76 lbl.setFont(textArea.getFont()); 77 77 lbl.setToolTipText(tooltip); 78 lbl.setLabelFor(textArea); 78 79 return lbl; 79 80 } … … 100 101 pnlUserAndChangeset.add(lblChangeset); 101 102 102 lblChangesetComment = buildTextArea(tr("Changeset comment"));103 lblChangesetSource = buildTextArea(tr("Changeset source"));104 lblChangesetImageryUsed = buildTextArea(tr("Imagery used"));105 106 lblSource = buildLabel(tr("<b>Source</b>:"), tr("Changeset source"), lblChangesetSource);107 lblImageryUsed = buildLabel(tr("<b>Imagery</b>:"), tr("Imagery used"), lblChangesetImageryUsed);108 pnlChangesetSource = buildTextPanel(lblSource, lblChangesetSource);109 pnlChangesetImageryUsed = buildTextPanel(lblImageryUsed, lblChangesetImageryUsed);103 texChangesetComment = buildTextArea(tr("Changeset comment")); 104 texChangesetSource = buildTextArea(tr("Changeset source")); 105 texChangesetImageryUsed = buildTextArea(tr("Imagery used")); 106 107 lblSource = buildLabel(tr("<b>Source</b>:"), tr("Changeset source"), texChangesetSource); 108 lblImageryUsed = buildLabel(tr("<b>Imagery</b>:"), tr("Imagery used"), texChangesetImageryUsed); 109 pnlChangesetSource = buildTextPanel(lblSource, texChangesetSource); 110 pnlChangesetImageryUsed = buildTextPanel(lblImageryUsed, texChangesetImageryUsed); 110 111 111 112 setLayout(new GridBagLayout()); … … 120 121 add(pnlUserAndChangeset, gc); 121 122 gc.gridy = 2; 122 add( lblChangesetComment, gc);123 add(texChangesetComment, gc); 123 124 gc.gridy = 3; 124 125 add(pnlChangesetSource, gc); … … 228 229 229 230 final Changeset oppCs = model.getPointInTime(pointInTimeType.opposite()).getChangeset(); 230 updateText(cs, "comment", lblChangesetComment, null, oppCs, lblChangesetComment);231 updateText(cs, "source", lblChangesetSource, lblSource, oppCs, pnlChangesetSource);232 updateText(cs, "imagery_used", lblChangesetImageryUsed, lblImageryUsed, oppCs, pnlChangesetImageryUsed);231 updateText(cs, "comment", texChangesetComment, null, oppCs, texChangesetComment); 232 updateText(cs, "source", texChangesetSource, lblSource, oppCs, pnlChangesetSource); 233 updateText(cs, "imagery_used", texChangesetImageryUsed, lblImageryUsed, oppCs, pnlChangesetImageryUsed); 233 234 } 234 235
Note:
See TracChangeset
for help on using the changeset viewer.