- Timestamp:
- 2015-04-18T23:03:06+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/history/VersionInfoPanel.java
r7678 r8226 45 45 private UrlLabel lblChangeset; 46 46 private JPanel pnlChangesetSource; 47 private JPanel pnlChangesetImageryUsed; 47 48 private JLabel lblSource; 49 private JLabel lblImageryUsed; 48 50 private JTextArea lblChangesetComment; 49 51 private JTextArea lblChangesetSource; 52 private JTextArea lblChangesetImageryUsed; 50 53 51 54 protected static JTextArea buildTextArea(String tooltip) { … … 71 74 JPanel pnl = new JPanel(new GridBagLayout()); 72 75 pnl.add(label, GBC.std().anchor(GBC.NORTHWEST)); 73 pnl.add(textArea, GBC.eol(). fill());76 pnl.add(textArea, GBC.eol().insets(2, 0, 0, 0).fill()); 74 77 return pnl; 75 78 } … … 90 93 lblChangesetComment = buildTextArea(tr("Changeset comment")); 91 94 lblChangesetSource = buildTextArea(tr("Changeset source")); 95 lblChangesetImageryUsed = buildTextArea(tr("Imagery used")); 92 96 93 97 lblSource = buildLabel(tr("<b>Source</b>:"), tr("Changeset source"), lblChangesetSource); 98 lblImageryUsed = buildLabel(tr("<b>Imagery</b>:"), tr("Imagery used"), lblChangesetImageryUsed); 94 99 pnlChangesetSource = buildTextPanel(lblSource, lblChangesetSource); 100 pnlChangesetImageryUsed = buildTextPanel(lblImageryUsed, lblChangesetImageryUsed); 95 101 96 102 setLayout(new GridBagLayout()); … … 108 114 gc.gridy = 3; 109 115 add(pnlChangesetSource, gc); 116 gc.gridy = 4; 117 add(pnlChangesetImageryUsed, gc); 110 118 } 111 119 … … 220 228 updateText(cs, "comment", lblChangesetComment, null, oppCs, lblChangesetComment); 221 229 updateText(cs, "source", lblChangesetSource, lblSource, oppCs, pnlChangesetSource); 230 updateText(cs, "imagery_used", lblChangesetImageryUsed, lblImageryUsed, oppCs, pnlChangesetImageryUsed); 222 231 } 223 232
Note:
See TracChangeset
for help on using the changeset viewer.