Ticket #24376: usernameLabel.patch
| File usernameLabel.patch, 1.6 KB (added by , 6 months ago) |
|---|
-
src/org/openstreetmap/josm/gui/io/BasicUploadSettingsPanel.java
31 31 import javax.swing.event.TableModelEvent; 32 32 import javax.swing.event.TableModelListener; 33 33 34 import org.openstreetmap.josm.data.UserIdentityManager; 34 35 import org.openstreetmap.josm.data.osm.Changeset; 35 36 import org.openstreetmap.josm.data.osm.OsmPrimitive; 36 37 import org.openstreetmap.josm.gui.MainApplication; … … 67 68 public static final String SOURCE_HISTORY_KEY = "upload.source.history"; 68 69 69 70 /** the history combo box for the upload comment */ 71 private final String userName = UserIdentityManager.getInstance().getUserName(); 72 73 private final JMultilineLabel usernameLabel = new JMultilineLabel( 74 tr("Will be uploaded as <strong>{0}</strong>", userName)); 70 75 private final HistoryComboBox hcbUploadComment = new HistoryComboBox(); 71 76 private final HistoryComboBox hcbUploadSource = new HistoryComboBox(); 72 77 private final transient JCheckBox obtainSourceAutomatically = new JCheckBox( … … 106 111 setLayout(new GridBagLayout()); 107 112 setBorder(BorderFactory.createEmptyBorder(3, 3, 3, 3)); 108 113 GBC gbc = GBC.eop().fill(GBC.HORIZONTAL); 114 add(usernameLabel, gbc); 109 115 add(buildUploadCommentPanel(), gbc); 110 116 add(buildUploadSourcePanel(), gbc); 111 117 add(pnlUploadParameterSummary, gbc);
