- Timestamp:
- 2015-05-26T01:37:50+02:00 (10 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 44 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/SessionSaveAsAction.java
r8404 r8426 239 239 JLabel lbl = new JLabel(layer.getName(), layer.getIcon(), SwingConstants.LEFT); 240 240 lbl.setToolTipText(tr("No exporter for this layer")); 241 lbl.setLabelFor(include); 241 242 lbl.setEnabled(false); 242 243 p.add(include, GBC.std()); -
trunk/src/org/openstreetmap/josm/actions/search/SearchAction.java
r8395 r8426 224 224 // -- prepare the combo box with the search expressions 225 225 // 226 JLabel label = new JLabel( 226 JLabel label = new JLabel(initialValues instanceof Filter ? tr("Filter string:") : tr("Search string:")); 227 227 final HistoryComboBox hcbSearchString = new HistoryComboBox(); 228 228 hcbSearchString.setText(initialValues.text); 229 229 hcbSearchString.setToolTipText(tr("Enter the search expression")); 230 // we have to reverse the history, because ComboBoxHistory will reverse it again 231 // in addElement() 230 // we have to reverse the history, because ComboBoxHistory will reverse it again in addElement() 232 231 // 233 232 List<String> searchExpressionHistory = getSearchExpressionHistory(); … … 235 234 hcbSearchString.setPossibleItems(searchExpressionHistory); 236 235 hcbSearchString.setPreferredSize(new Dimension(40, hcbSearchString.getPreferredSize().height)); 236 label.setLabelFor(hcbSearchString); 237 237 238 238 JRadioButton replace = new JRadioButton(tr("replace selection"), initialValues.mode == SearchMode.replace); -
trunk/src/org/openstreetmap/josm/corrector/TagCorrector.java
r7005 r8426 12 12 import java.util.List; 13 13 import java.util.Map; 14 import java.util.Map.Entry; 14 15 import java.util.Set; 15 import java.util.Map.Entry;16 16 17 17 import javax.swing.JLabel; … … 115 115 ); 116 116 p.add(primitiveLabel, GBC.eol()); 117 rolesLabel.setLabelFor(primitiveLabel); 117 118 118 119 final RoleCorrectionTable table = new RoleCorrectionTable(roleCorrections); 119 120 final JScrollPane scrollPane = new JScrollPane(table); 120 121 p.add(scrollPane, GBC.eop().fill(GBC.HORIZONTAL)); 122 primitiveLabel.setLabelFor(table); 121 123 122 124 roleTableMap.put(primitive, table); -
trunk/src/org/openstreetmap/josm/gui/MapStatus.java
r8413 r8426 331 331 332 332 // Popup Information 333 // display them if the middle mouse button is pressed and 334 // keep them until the mouse is moved 333 // display them if the middle mouse button is pressed and keep them until the mouse is moved 335 334 if (middleMouseDown || isAtOldPosition) { 336 335 Collection<OsmPrimitive> osms = mv.getAllNearest(ms.mousePos, OsmPrimitive.isUsablePredicate); … … 346 345 c.add(lbl, GBC.eol().insets(2, 0, 2, 0)); 347 346 348 // Only cycle if the mouse has not been moved and the 349 // middle mouse button has been pressed at least twice 350 // (the reason for this is the popup != null check for 351 // isAtOldPosition, see above. This is a nice side 352 // effect though, because it does not change selection 353 // of the first middle click) 354 if(isAtOldPosition && middleMouseDown) { 355 // Hand down mouse modifiers so the SHIFT mod can be 356 // handled correctly (see funcion) 347 // Only cycle if the mouse has not been moved and the middle mouse button has been pressed at least 348 // twice (the reason for this is the popup != null check for isAtOldPosition, see above. 349 // This is a nice side effect though, because it does not change selection of the first middle click) 350 if (isAtOldPosition && middleMouseDown) { 351 // Hand down mouse modifiers so the SHIFT mod can be handled correctly (see function) 357 352 popupCycleSelection(osms, ms.modifiers); 358 353 } 359 354 360 // These labels may need to be updated from the outside 361 // so collect them 355 // These labels may need to be updated from the outside so collect them 362 356 List<JLabel> lbls = new ArrayList<>(osms.size()); 363 357 for (final OsmPrimitive osm : osms) { -
trunk/src/org/openstreetmap/josm/gui/NoteInputDialog.java
r8211 r8426 41 41 */ 42 42 public void showNoteDialog(String message, Icon icon) { 43 JLabel label = new JLabel(message);44 43 textArea.setRows(6); 45 44 textArea.setColumns(30); … … 48 47 JScrollPane scrollPane = new JScrollPane(textArea); 49 48 scrollPane.setAlignmentX(Component.LEFT_ALIGNMENT); //without this the label gets pushed to the right 49 50 JLabel label = new JLabel(message); 51 label.setLabelFor(textArea); 50 52 51 53 JPanel contentPanel = new JPanel(); -
trunk/src/org/openstreetmap/josm/gui/PleaseWaitDialog.java
r8394 r8426 38 38 private JButton btnInBackground; 39 39 /** the text area and the scroll pane for the log */ 40 private JosmTextArea taLog = new JosmTextArea(5,50);40 private final JosmTextArea taLog = new JosmTextArea(5,50); 41 41 private JScrollPane spLog; 42 42 … … 136 136 @Override 137 137 public void appendLogMessage(String message) { 138 if (message == null || message.trim(). length() ==0)138 if (message == null || message.trim().isEmpty()) 139 139 return; 140 140 if (!spLog.isVisible()) { … … 200 200 this.progressBar.repaint(); 201 201 } 202 203 202 } -
trunk/src/org/openstreetmap/josm/gui/actionsupport/AlignImageryPanel.java
r7937 r8426 32 32 33 33 public AlignImageryPanel(boolean oneLine) { 34 super();35 36 34 Font font = getFont().deriveFont(Font.PLAIN, 14.0f); 37 35 JLabel nagLabel = new JLabel(tr("Aerial imagery might be misaligned. Please check its offset using GPS tracks!")); 38 36 UrlLabel detailsList = new UrlLabel(tr("http://wiki.openstreetmap.org/wiki/Using_Imagery"), tr("Details...")); 37 nagLabel.setLabelFor(detailsList); 39 38 nagLabel.setFont(font); 40 39 detailsList.setFont(font); … … 47 46 closeButton.addActionListener(new ActionListener() { 48 47 @Override 49 public void actionPerformed( ActionEvent e) {48 public void actionPerformed(ActionEvent e) { 50 49 if (Main.isDisplayingMapView()) { 51 50 Main.map.removeTopPanel(AlignImageryPanel.class); … … 70 69 71 70 public static void addNagPanelIfNeeded() { 72 if (Main.isDisplayingMapView() && !Main.pref.getBoolean("expert") && Main.pref.getBoolean(PREF, true) 71 if (Main.isDisplayingMapView() && !Main.pref.getBoolean("expert") && Main.pref.getBoolean(PREF, true)) { 73 72 if (Main.map.getTopPanel(AlignImageryPanel.class) == null) { 74 73 double w = Toolkit.getDefaultToolkit().getScreenSize().getWidth(); 75 AlignImageryPanel p = new AlignImageryPanel(w >1300);74 AlignImageryPanel p = new AlignImageryPanel(w > 1300); 76 75 Main.map.addTopPanel(p); 77 76 } -
trunk/src/org/openstreetmap/josm/gui/actionsupport/LogShowDialog.java
r8419 r8426 19 19 * Generic dialog with message and scrolling area 20 20 * @author Alexei 21 * @since 5114 21 22 */ 22 23 public class LogShowDialog extends ExtendedDialog { 23 24 24 25 /** 26 * Constructs a new {@code LogShowDialog}. 27 * @param title The text that will be shown in the window titlebar 28 * @param msg Single-line Label 29 * @param log Multi-line log 30 */ 25 31 public LogShowDialog(String title, String msg, String log) { 26 32 super(Main.parent, title, new String[] {tr("OK")}); … … 42 48 txt.setOpaque(false); 43 49 50 lbl.setLabelFor(txt); 51 44 52 JScrollPane sp = new JScrollPane(txt); 45 53 sp.setOpaque(false); 46 54 sp.setPreferredSize(new Dimension(600,300)); 47 48 55 49 56 p.add(sp, GBC.eop().insets(5,15,0,0).fill(GBC.HORIZONTAL)); -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/ListMerger.java
r8419 r8426 45 45 * A UI component for resolving conflicts in two lists of entries of type T. 46 46 * 47 * @param <T> 47 * @param <T> the type of the entries 48 48 * @see ListMergeModel 49 * @since 1631 49 50 */ 50 51 public abstract class ListMerger<T extends PrimitiveId> extends JPanel implements PropertyChangeListener, Observer { … … 74 75 private transient AdjustmentSynchronizer adjustmentSynchronizer; 75 76 76 private 77 private 78 private 79 80 private 77 private JLabel lblMyVersion; 78 private JLabel lblMergedVersion; 79 private JLabel lblTheirVersion; 80 81 private JLabel lblFrozenState; 81 82 82 83 protected abstract JScrollPane buildMyElementsTable(); … … 124 125 125 126 protected JPanel buildLeftButtonPanel() { 126 JPanel pnl = new JPanel(); 127 pnl.setLayout(new GridBagLayout()); 127 JPanel pnl = new JPanel(new GridBagLayout()); 128 128 GridBagConstraints gc = new GridBagConstraints(); 129 129 … … 167 167 168 168 protected JPanel buildRightButtonPanel() { 169 JPanel pnl = new JPanel(); 170 pnl.setLayout(new GridBagLayout()); 169 JPanel pnl = new JPanel(new GridBagLayout()); 171 170 GridBagConstraints gc = new GridBagConstraints(); 172 171 … … 200 199 201 200 protected JPanel buildMergedListControlButtons() { 202 JPanel pnl = new JPanel(); 203 pnl.setLayout(new GridBagLayout()); 201 JPanel pnl = new JPanel(new GridBagLayout()); 204 202 GridBagConstraints gc = new GridBagConstraints(); 205 203 … … 229 227 230 228 protected JPanel buildAdjustmentLockControlPanel(JCheckBox cb) { 231 JPanel panel = new JPanel(); 232 panel.setLayout(new FlowLayout(FlowLayout.RIGHT)); 229 JPanel panel = new JPanel(new FlowLayout(FlowLayout.RIGHT)); 233 230 panel.add(new JLabel(tr("lock scrolling"))); 234 231 panel.add(cb); … … 237 234 238 235 protected JPanel buildComparePairSelectionPanel() { 239 JPanel p = new JPanel(); 240 p.setLayout(new FlowLayout(FlowLayout.LEFT)); 236 JPanel p = new JPanel(new FlowLayout(FlowLayout.LEFT)); 241 237 p.add(new JLabel(tr("Compare "))); 242 238 JosmComboBox<ComparePairType> cbComparePair = new JosmComboBox<>(model.getComparePairListModel()); … … 247 243 248 244 protected JPanel buildFrozeStateControlPanel() { 249 JPanel p = new JPanel(); 250 p.setLayout(new FlowLayout(FlowLayout.LEFT)); 245 JPanel p = new JPanel(new FlowLayout(FlowLayout.LEFT)); 251 246 lblFrozenState = new JLabel(); 252 247 p.add(lblFrozenState); … … 327 322 gc.insets = new Insets(0,0,0,0); 328 323 JScrollPane pane = buildMyElementsTable(); 324 lblMyVersion.setLabelFor(pane); 329 325 adjustmentSynchronizer.adapt(cbLockMyScrolling, pane.getVerticalScrollBar()); 330 326 add(pane, gc); … … 345 341 gc.weighty = 0.0; 346 342 pane = buildMergedElementsTable(); 343 lblMergedVersion.setLabelFor(pane); 347 344 adjustmentSynchronizer.adapt(cbLockMergedScrolling, pane.getVerticalScrollBar()); 348 345 add(pane, gc); … … 363 360 gc.weighty = 0.0; 364 361 pane = buildTheirElementsTable(); 362 lblTheirVersion.setLabelFor(pane); 365 363 adjustmentSynchronizer.adapt(cbLockTheirScrolling, pane.getVerticalScrollBar()); 366 364 add(pane, gc); -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/nodes/NodeListMerger.java
r6084 r8426 13 13 /** 14 14 * A UI component for resolving conflicts in the node lists of two {@link Way}s. 15 * 15 * @since 1622 16 16 */ 17 17 public class NodeListMerger extends ListMerger<Node> implements IConflictResolver { 18 19 /** 20 * Constructs a new {@code NodeListMerger}. 21 */ 18 22 public NodeListMerger() { 19 23 super(new NodeListMergeModel()); -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/properties/PropertiesMerger.java
r8390 r8426 30 30 31 31 /** 32 * This class represents a UI component for resolving conflicts in some properties 33 * of {@link OsmPrimitive}. 34 * 32 * This class represents a UI component for resolving conflicts in some properties of {@link OsmPrimitive}. 33 * @since 1654 35 34 */ 36 35 public class PropertiesMerger extends JPanel implements Observer, IConflictResolver { … … 49 48 50 49 private final transient PropertiesMergeModel model; 50 51 /** 52 * Constructs a new {@code PropertiesMerger}. 53 */ 54 public PropertiesMerger() { 55 model = new PropertiesMergeModel(); 56 model.addObserver(this); 57 build(); 58 } 51 59 52 60 protected JLabel buildValueLabel(String name) { … … 275 283 buildDeletedStateConflictRows(); 276 284 buildReferrersRow(); 277 }278 279 /**280 * Constructs a new {@code PropertiesMerger}.281 */282 public PropertiesMerger() {283 model = new PropertiesMergeModel();284 model.addObserver(this);285 build();286 285 } 287 286 -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/relation/RelationMemberMerger.java
r6084 r8426 12 12 13 13 /** 14 * A UI component for resolving conflicts in the member lists of two {@link Relation} 14 * A UI component for resolving conflicts in the member lists of two {@link Relation}s. 15 * @since 1631 15 16 */ 16 17 public class RelationMemberMerger extends ListMerger<RelationMember> implements IConflictResolver { 18 19 /** 20 * Constructs a new {@code RelationMemberMerger}. 21 */ 22 public RelationMemberMerger() { 23 super(new RelationMemberListMergeModel()); 24 } 25 17 26 @Override 18 27 protected JScrollPane buildMyElementsTable() { … … 58 67 } 59 68 60 public RelationMemberMerger() {61 super(new RelationMemberListMergeModel());62 }63 64 69 @Override 65 70 public void deletePrimitive(boolean deleted) { -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/tags/TagMerger.java
r8390 r8426 32 32 import org.openstreetmap.josm.gui.conflict.pair.MergeDecisionType; 33 33 import org.openstreetmap.josm.tools.ImageProvider; 34 34 35 /** 35 36 * UI component for resolving conflicts in the tag sets of two {@link OsmPrimitive}s. 36 * 37 * @since 1622 37 38 */ 38 39 public class TagMerger extends JPanel implements IConflictResolver { … … 45 46 46 47 /** 48 * Constructs a new {@code TagMerger}. 49 */ 50 public TagMerger() { 51 model = new TagMergeModel(); 52 build(); 53 } 54 55 /** 47 56 * embeds table in a new {@link JScrollPane} and returns th scroll pane 48 57 * … … 62 71 */ 63 72 protected JScrollPane buildMineTagTable() { 64 mineTable 73 mineTable = new JTable( 65 74 model, 66 75 new TagMergeColumnModel( … … 78 87 */ 79 88 protected JScrollPane buildTheirTable() { 80 theirTable 89 theirTable = new JTable( 81 90 model, 82 91 new TagMergeColumnModel( … … 95 104 96 105 protected JScrollPane buildMergedTable() { 97 mergedTable 106 mergedTable = new JTable( 98 107 model, 99 108 new TagMergeColumnModel( … … 123 132 gc.weighty = 0.0; 124 133 gc.insets = new Insets(10,0,10,0); 125 JLabel lbl = new JLabel(tr("My version (local dataset)"));126 add(lbl , gc);134 JLabel lblMy = new JLabel(tr("My version (local dataset)")); 135 add(lblMy, gc); 127 136 128 137 gc.gridx = 2; … … 134 143 gc.weightx = 0.0; 135 144 gc.weighty = 0.0; 136 lbl= new JLabel(tr("Merged version"));137 add(lbl , gc);145 JLabel lblMerge = new JLabel(tr("Merged version")); 146 add(lblMerge, gc); 138 147 139 148 gc.gridx = 4; … … 146 155 gc.weighty = 0.0; 147 156 gc.insets = new Insets(0,0,0,0); 148 lbl= new JLabel(tr("Their version (server dataset)"));149 add(lbl , gc);157 JLabel lblTheir = new JLabel(tr("Their version (server dataset)")); 158 add(lblTheir, gc); 150 159 151 160 gc.gridx = 0; … … 157 166 gc.weightx = 0.3; 158 167 gc.weighty = 1.0; 159 add(buildMineTagTable(), gc); 168 JScrollPane tabMy = buildMineTagTable(); 169 lblMy.setLabelFor(tabMy); 170 add(tabMy, gc); 160 171 161 172 gc.gridx = 1; … … 181 192 gc.weightx = 0.3; 182 193 gc.weighty = 1.0; 183 add(buildMergedTable(), gc); 194 JScrollPane tabMerge = buildMergedTable(); 195 lblMerge.setLabelFor(tabMerge); 196 add(tabMerge, gc); 184 197 185 198 gc.gridx = 3; … … 204 217 gc.weightx = 0.3; 205 218 gc.weighty = 1.0; 206 add(buildTheirTable(), gc); 219 JScrollPane tabTheir = buildTheirTable(); 220 lblTheir.setLabelFor(tabTheir); 221 add(tabTheir, gc); 207 222 theirTable.getSelectionModel().addListSelectionListener(keepTheirAction); 208 223 … … 224 239 btnUndecide.setName("button.undecide"); 225 240 add(btnUndecide, gc); 226 227 }228 229 /**230 * Constructs a new {@code TagMerger}.231 */232 public TagMerger() {233 model = new TagMergeModel();234 build();235 241 } 236 242 -
trunk/src/org/openstreetmap/josm/gui/dialogs/MapPaintDialog.java
r8379 r8426 99 99 protected JCheckBox cbWireframe; 100 100 101 /** 102 * Action that opens the map paint preferences. 103 */ 101 104 public static final JosmAction PREFERENCE_ACTION = PreferencesAction.forPreferenceSubTab( 102 105 tr("Map paint preferences"), null, MapPaintPreference.class, /* ICON */ "dialogs/mappaintpreference"); … … 118 121 JLabel wfLabel = new JLabel(tr("Wireframe View"), ImageProvider.get("dialogs/mappaint", "wireframe_small"), JLabel.HORIZONTAL); 119 122 wfLabel.setFont(wfLabel.getFont().deriveFont(Font.PLAIN)); 123 wfLabel.setLabelFor(cbWireframe); 120 124 121 125 cbWireframe.setModel(new DefaultButtonModel() { … … 208 212 protected class StylesModel extends AbstractTableModel implements MapPaintSylesUpdateListener { 209 213 214 private final Class<?>[] columnClasses = {Boolean.class, StyleSource.class}; 215 210 216 private transient List<StyleSource> data = new ArrayList<>(); 211 217 218 /** 219 * Constructs a new {@code StylesModel}. 220 */ 212 221 public StylesModel() { 213 222 data = new ArrayList<>(MapPaintStyles.getStyles().getStyleSources()); … … 240 249 return column == 0; 241 250 } 242 243 private Class<?>[] columnClasses = {Boolean.class, StyleSource.class};244 251 245 252 @Override … … 286 293 private class MyCheckBoxRenderer extends JCheckBox implements TableCellRenderer { 287 294 295 /** 296 * Constructs a new {@code MyCheckBoxRenderer}. 297 */ 288 298 public MyCheckBoxRenderer() { 289 299 setHorizontalAlignment(SwingConstants.CENTER); … … 318 328 319 329 protected class OnOffAction extends AbstractAction implements ListSelectionListener { 330 /** 331 * Constructs a new {@code OnOffAction}. 332 */ 320 333 public OnOffAction() { 321 334 putValue(NAME, tr("On/Off")); … … 352 365 private final int increment; 353 366 367 /** 368 * Constructs a new {@code MoveUpDownAction}. 369 * @param isDown {@code true} to move the entry down, {@code false} to move it up 370 */ 354 371 public MoveUpDownAction(boolean isDown) { 355 372 increment = isDown ? 1 : -1; … … 384 401 385 402 protected class ReloadAction extends AbstractAction implements ListSelectionListener { 403 /** 404 * Constructs a new {@code ReloadAction}. 405 */ 386 406 public ReloadAction() { 387 407 putValue(NAME, tr("Reload from file")); … … 425 445 } 426 446 }); 427 428 447 } 429 448 }); … … 433 452 protected class SaveAsAction extends AbstractAction { 434 453 454 /** 455 * Constructs a new {@code SaveAsAction}. 456 */ 435 457 public SaveAsAction() { 436 458 putValue(NAME, tr("Save as...")); … … 523 545 } 524 546 547 /** 548 * Displays information about selected paint style in a new dialog. 549 */ 525 550 protected class InfoAction extends AbstractAction { 526 551 … … 528 553 private boolean sourceTabLoaded; 529 554 555 /** 556 * Constructs a new {@code InfoAction}. 557 */ 530 558 public InfoAction() { 531 559 putValue(NAME, tr("Info")); -
trunk/src/org/openstreetmap/josm/gui/dialogs/OsmIdSelectionDialog.java
r8308 r8426 71 71 72 72 JLabel lbl1 = new JLabel(tr("Object type:")); 73 lbl1.setLabelFor(cbType); 73 74 74 75 cbType.addItem(trc("osm object types", "mixed")); 75 76 cbType.setToolTipText(tr("Choose the OSM object type")); 76 77 JLabel lbl2 = new JLabel(tr("Object ID:")); 78 lbl2.setLabelFor(cbId); 77 79 78 80 cbId.setEditor(new BasicComboBoxEditor() { -
trunk/src/org/openstreetmap/josm/gui/dialogs/ToggleDialog.java
r8378 r8426 73 73 /** 74 74 * This class is a toggle dialog that can be turned on and off. 75 * 75 * @since 8 76 76 */ 77 77 public class ToggleDialog extends JPanel implements ShowHideButtonListener, Helpful, AWTEventListener, Destroyable, PreferenceChangedListener { -
trunk/src/org/openstreetmap/josm/gui/dialogs/properties/TagEditHelper.java
r8399 r8426 635 635 } 636 636 637 private String code(String text) { 638 return "<code>" + text + "</code> "; 639 } 640 637 641 @Override 638 642 public void setContentPane(Container contentPane) { 639 643 final int commandDownMask = GuiHelper.getMenuShortcutKeyMaskEx(); 640 ArrayList<String> lines = new ArrayList<>();644 List<String> lines = new ArrayList<>(); 641 645 Shortcut sc = Shortcut.findShortcut(KeyEvent.VK_1, commandDownMask); 642 646 if (sc != null) { 643 lines.add( "<code>"+sc.getKeyText()+"</code> "+tr("to apply first suggestion"));644 } 645 lines.add( "<code>"+KeyEvent.getKeyModifiersText(KeyEvent.SHIFT_MASK)+"+"+KeyEvent.getKeyText(KeyEvent.VK_ENTER)+"</code> "647 lines.add(code(sc.getKeyText()) + tr("to apply first suggestion")); 648 } 649 lines.add(code(KeyEvent.getKeyModifiersText(KeyEvent.SHIFT_MASK)+"+"+KeyEvent.getKeyText(KeyEvent.VK_ENTER)) 646 650 +tr("to add without closing the dialog")); 647 651 sc = Shortcut.findShortcut(KeyEvent.VK_1, commandDownMask|KeyEvent.SHIFT_DOWN_MASK); 648 652 if (sc != null) { 649 lines.add( "<code>"+sc.getKeyText()+"</code> "+tr("to add first suggestion without closing the dialog"));653 lines.add(code(sc.getKeyText()) + tr("to add first suggestion without closing the dialog")); 650 654 } 651 655 final JLabel helpLabel = new JLabel("<html>" + Utils.join("<br>", lines) + "</html>"); -
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 -
trunk/src/org/openstreetmap/josm/gui/io/DownloadPrimitivesWithReferrersTask.java
r8378 r8426 49 49 50 50 /** Temporary layer where downloaded primitives are put */ 51 private OsmDataLayer tmpLayer;51 private final OsmDataLayer tmpLayer; 52 52 /** Reference to the task that download requested primitives */ 53 53 private DownloadPrimitivesTask mainTask; … … 209 209 JPanel p = new JPanel(new GridBagLayout()); 210 210 p.add(new HtmlPanel(text), GBC.eop()); 211 JosmTextArea txt = new JosmTextArea(); 211 212 if (listLabel != null) { 212 213 JLabel missing = new JLabel(listLabel); 213 214 missing.setFont(missing.getFont().deriveFont(Font.PLAIN)); 215 missing.setLabelFor(txt); 214 216 p.add(missing, GBC.eol()); 215 217 } 216 JosmTextArea txt = new JosmTextArea();217 218 txt.setFont(GuiHelper.getMonospacedFont(txt)); 218 219 txt.setEditable(false); … … 227 228 Main.parent, 228 229 title, 229 new String[] { tr("Ok")})230 .setButtonIcons(new String[] { "ok"})230 new String[] {tr("Ok")}) 231 .setButtonIcons(new String[] {"ok"}) 231 232 .setIcon(msgType) 232 233 .setContent(p, false); -
trunk/src/org/openstreetmap/josm/gui/io/LayerNameAndFilePathTableCell.java
r8379 r8426 54 54 lblFilename.setPreferredSize(new Dimension(lblFilename.getPreferredSize().width, 19)); 55 55 lblFilename.setOpaque(true); 56 lblFilename.setLabelFor(btnFileChooser); 56 57 57 58 tfFilename.setToolTipText(tr("Either edit the path manually in the text field or click the \"...\" button to open a file chooser.")); -
trunk/src/org/openstreetmap/josm/gui/io/SaveLayersTableColumnModel.java
r6889 r8426 25 25 private static final GBC defaultCellStyle = GBC.eol().fill(GBC.HORIZONTAL).insets(2, 0, 2, 0); 26 26 27 /** 28 * Constructs a new {@code RecommendedActionsTableCell}. 29 */ 27 30 public RecommendedActionsTableCell() { 28 31 pnlEmpty.setPreferredSize(new Dimension(1, 19)); … … 36 39 JPanel panel = new JPanel(new GridBagLayout()); 37 40 SaveLayerInfo info = (SaveLayerInfo)value; 38 StringBuilder sb = new StringBuilder( );41 StringBuilder sb = new StringBuilder(24); 39 42 sb.append("<html>"); 40 43 if (info.getLayer().requiresUploadToServer() && !info.getLayer().isUploadDiscouraged()) { … … 54 57 if (info.getLayer().requiresSaveToFile()) { 55 58 panel.add(needsSave, defaultCellStyle); 56 sb.append(tr("Layer ''{0}'' has modifications which should be saved to its associated file ''{1}''.", info.getName(), info.getFile().toString())); 59 sb.append(tr("Layer ''{0}'' has modifications which should be saved to its associated file ''{1}''.", 60 info.getName(), info.getFile().toString())); 57 61 } else { 58 62 panel.add(pnlEmpty, defaultCellStyle); … … 63 67 return panel; 64 68 } 69 } 70 71 /** 72 * Constructs a new {@code SaveLayersTableColumnModel}. 73 */ 74 public SaveLayersTableColumnModel() { 75 build(); 65 76 } 66 77 … … 97 108 addColumn(col); 98 109 } 99 100 public SaveLayersTableColumnModel() {101 build();102 }103 110 } -
trunk/src/org/openstreetmap/josm/gui/io/UploadAndSaveProgressRenderer.java
r6084 r8426 20 20 private JLabel lblCustomText; 21 21 private JProgressBar progressBar; 22 23 /** 24 * Constructs a new {@code UploadAndSaveProgressRenderer}. 25 */ 26 public UploadAndSaveProgressRenderer() { 27 build(); 28 // initially not visible 29 setVisible(false); 30 } 22 31 23 32 protected void build() { … … 47 56 gc.insets = new Insets(5,0,0,5); 48 57 add(progressBar = new JProgressBar(JProgressBar.HORIZONTAL), gc); 49 }50 51 public UploadAndSaveProgressRenderer() {52 build();53 // initially not visible54 setVisible(false);55 58 } 56 59 -
trunk/src/org/openstreetmap/josm/gui/io/UploadParameterSummaryPanel.java
r8390 r8426 31 31 private transient ConfigurationParameterRequestHandler configHandler; 32 32 33 /** 34 * Constructs a new {@code UploadParameterSummaryPanel}. 35 */ 36 public UploadParameterSummaryPanel() { 37 build(); 38 updateSummary(); 39 } 40 33 41 protected String buildChangesetSummary() { 34 42 StringBuilder msg = new StringBuilder(96); … … 56 64 if (spec == null) 57 65 return ""; 58 // check whether we can use one changeset only or whether we have to use 59 // multiple changesets 66 // check whether we can use one changeset only or whether we have to use multiple changesets 60 67 // 61 68 boolean useOneChangeset = true; … … 113 120 } 114 121 115 /**116 * Constructs a new {@code UploadParameterSummaryPanel}.117 */118 public UploadParameterSummaryPanel() {119 build();120 updateSummary();121 }122 123 122 public void setConfigurationParameterRequestListener(ConfigurationParameterRequestHandler handler) { 124 123 this.configHandler = handler; … … 141 140 142 141 protected void updateSummary() { 143 StringBuilder sb = new StringBuilder( );142 StringBuilder sb = new StringBuilder(32); 144 143 sb.append("<html>") 145 144 .append(buildStrategySummary()) -
trunk/src/org/openstreetmap/josm/gui/io/UploadSelectionDialog.java
r8415 r8426 47 47 * This dialog can be used to select individual object for uploading. 48 48 * 49 * 49 * @since 2250 50 50 */ 51 51 public class UploadSelectionDialog extends JDialog { … … 57 57 private SideButton btnContinue; 58 58 59 /** 60 * Constructs a new {@code UploadSelectionDialog}. 61 */ 62 public UploadSelectionDialog() { 63 super(JOptionPane.getFrameForComponent(Main.parent), ModalityType.DOCUMENT_MODAL); 64 build(); 65 } 66 59 67 protected JPanel buildSelectedPrimitivesPanel() { 60 68 JPanel pnl = new JPanel(); 61 69 pnl.setLayout(new BorderLayout()); 62 JLabel lbl = new JLabel(tr("<html>Mark modified objects <strong>from the current selection</strong> to be uploaded to the server.</html>")); 70 JLabel lbl = new JLabel( 71 tr("<html>Mark modified objects <strong>from the current selection</strong> to be uploaded to the server.</html>")); 63 72 lbl.setBorder(BorderFactory.createEmptyBorder(5,5,5,5)); 64 73 pnl.add(lbl, BorderLayout.NORTH); 65 74 pnl.add(new JScrollPane(lstSelectedPrimitives = new OsmPrimitiveList()), BorderLayout.CENTER); 75 lbl.setLabelFor(lstSelectedPrimitives); 66 76 return pnl; 67 77 } … … 74 84 pnl.add(lbl, BorderLayout.NORTH); 75 85 pnl.add(new JScrollPane(lstDeletedPrimitives = new OsmPrimitiveList()), BorderLayout.CENTER); 86 lbl.setLabelFor(lstDeletedPrimitives); 76 87 return pnl; 77 88 } … … 114 125 setTitle(tr("Select objects to upload")); 115 126 HelpUtil.setHelpContext(getRootPane(), HelpUtil.ht("/Dialog/UploadSelection")); 116 }117 118 public UploadSelectionDialog() {119 super(JOptionPane.getFrameForComponent(Main.parent), ModalityType.DOCUMENT_MODAL);120 build();121 127 } 122 128 -
trunk/src/org/openstreetmap/josm/gui/io/UploadedObjectsSummaryPanel.java
r8308 r8426 20 20 21 21 /** 22 * This panel displays a summary of the objects to upload. It is displayed in 23 * the upper part of the {@link UploadDialog}. 24 * 22 * This panel displays a summary of the objects to upload. It is displayed in the upper part of the {@link UploadDialog}. 23 * @since 2599 25 24 */ 26 25 public class UploadedObjectsSummaryPanel extends JPanel { … … 40 39 private JScrollPane spDelete; 41 40 41 /** 42 * Constructs a new {@code UploadedObjectsSummaryPanel}. 43 */ 44 public UploadedObjectsSummaryPanel() { 45 build(); 46 } 47 42 48 protected void build() { 43 49 setLayout(new GridBagLayout()); 44 50 OsmPrimitivRenderer renderer = new OsmPrimitivRenderer(); 45 // initialize the three lists for uploaded primitives, but don't add 46 // them to the dialog yet, see setUploadedPrimitives() 51 // initialize the three lists for uploaded primitives, but don't add them to the dialog yet, see setUploadedPrimitives() 47 52 // 48 53 lstAdd = new PrimitiveList(); … … 51 56 spAdd = new JScrollPane(lstAdd); 52 57 lblAdd = new JLabel(tr("Objects to add:")); 58 lblAdd.setLabelFor(lstAdd); 53 59 54 60 lstUpdate = new PrimitiveList(); … … 57 63 spUpdate = new JScrollPane(lstUpdate); 58 64 lblUpdate = new JLabel(tr("Objects to modify:")); 65 lblUpdate.setLabelFor(lstUpdate); 59 66 60 67 lstDelete = new PrimitiveList(); … … 63 70 spDelete = new JScrollPane(lstDelete); 64 71 lblDelete = new JLabel(tr("Objects to delete:")); 72 lblDelete.setLabelFor(lstDelete); 65 73 } 66 74 … … 121 129 } 122 130 123 public UploadedObjectsSummaryPanel() {124 build();125 }126 127 131 /** 128 132 * Replies the number of objects to upload … … 138 142 /** 139 143 * A simple list of OSM primitives. 140 *141 144 */ 142 145 static class PrimitiveList extends JList<OsmPrimitive> { 146 /** 147 * Constructs a new {@code PrimitiveList}. 148 */ 143 149 public PrimitiveList() { 144 150 super(new PrimitiveListModel()); … … 152 158 /** 153 159 * A list model for a list of OSM primitives. 154 *155 160 */ 156 161 static class PrimitiveListModel extends AbstractListModel<OsmPrimitive> { 157 162 private transient List<OsmPrimitive> primitives; 158 163 164 /** 165 * Constructs a new {@code PrimitiveListModel}. 166 */ 159 167 public PrimitiveListModel() { 160 168 primitives = new ArrayList<>(); -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/CorrelateGpxWithImages.java
r8405 r8426 655 655 Main.parent, 656 656 tr("Correlate images with GPX track"), 657 new String[] { tr("Correlate"), tr("Cancel")},657 new String[] {tr("Correlate"), tr("Cancel")}, 658 658 false 659 659 ); 660 660 syncDialog.setContent(panelTf, false); 661 syncDialog.setButtonIcons(new String[] { "ok", "cancel"});661 syncDialog.setButtonIcons(new String[] {"ok", "cancel"}); 662 662 syncDialog.setupDialog(); 663 663 outerPanel.add(syncDialog.getContentPane(), BorderLayout.PAGE_START); -
trunk/src/org/openstreetmap/josm/gui/oauth/OAuthAuthorizationWizard.java
r8308 r8426 131 131 pnl.add(cbAuthorisationProcedure = new AuthorizationProcedureComboBox(),gc); 132 132 cbAuthorisationProcedure.addItemListener(new AuthorisationProcedureChangeListener()); 133 lbl.setLabelFor(cbAuthorisationProcedure); 133 134 return pnl; 134 135 } -
trunk/src/org/openstreetmap/josm/gui/oauth/SemiAutomaticAuthorizationUI.java
r8308 r8426 110 110 111 111 /** 112 * This is the panel displayed in the first step of the semi-automatic authorisation 113 * process. 112 * This is the panel displayed in the first step of the semi-automatic authorisation process. 114 113 */ 115 114 private class RetrieveRequestTokenPanel extends JPanel { 116 115 private JCheckBox cbShowAdvancedParameters; 116 117 /** 118 * Constructs a new {@code RetrieveRequestTokenPanel}. 119 */ 120 public RetrieveRequestTokenPanel() { 121 build(); 122 } 117 123 118 124 protected JPanel buildAdvancedParametersPanel() { … … 195 201 add(buildCommandPanel(), BorderLayout.SOUTH); 196 202 } 197 198 public RetrieveRequestTokenPanel() { 203 } 204 205 /** 206 * This is the panel displayed in the second step of the semi-automatic authorization process. 207 */ 208 private class RetrieveAccessTokenPanel extends JPanel { 209 210 private JosmTextField tfAuthoriseUrl; 211 212 /** 213 * Constructs a new {@code RetrieveAccessTokenPanel}. 214 */ 215 public RetrieveAccessTokenPanel() { 199 216 build(); 200 217 } 201 }202 203 204 /**205 * This is the panel displayed in the second step of the semi-automatic authorization206 * process.207 */208 private class RetrieveAccessTokenPanel extends JPanel {209 210 private JosmTextField tfAuthoriseUrl;211 218 212 219 protected JPanel buildTitlePanel() { … … 268 275 } 269 276 270 public RetrieveAccessTokenPanel() {271 build();272 }273 274 277 public void setAuthoriseUrl(String url) { 275 278 tfAuthoriseUrl.setText(url); … … 298 301 class ShowAccessTokenPanel extends JPanel { 299 302 303 /** 304 * Constructs a new {@code ShowAccessTokenPanel}. 305 */ 306 public ShowAccessTokenPanel() { 307 build(); 308 } 309 300 310 protected JPanel buildTitlePanel() { 301 311 JPanel pnl = new JPanel(new BorderLayout()); … … 345 355 add(buildContentPanel(), BorderLayout.CENTER); 346 356 add(buildActionPanel(), BorderLayout.SOUTH); 347 }348 349 public ShowAccessTokenPanel() {350 build();351 357 } 352 358 -
trunk/src/org/openstreetmap/josm/gui/preferences/display/GPXSettingsPanel.java
r8419 r8426 279 279 label = new JLabel(tr("Waypoint labelling")); 280 280 add(label, GBC.std().insets(20,0,0,0)); 281 label.setLabelFor(waypointLabel); 281 282 add(waypointLabel, GBC.eol().fill(GBC.HORIZONTAL).insets(5,0,0,5)); 282 283 waypointLabel.addActionListener(new ActionListener() { … … 299 300 label = new JLabel(tr("Audio waypoint labelling")); 300 301 add(label, GBC.std().insets(20,0,0,0)); 302 label.setLabelFor(audioWaypointLabel); 301 303 add(audioWaypointLabel, GBC.eol().fill(GBC.HORIZONTAL).insets(5,0,0,5)); 302 304 audioWaypointLabel.addActionListener(new ActionListener() { -
trunk/src/org/openstreetmap/josm/gui/preferences/imagery/AddWMSLayerPanel.java
r8308 r8426 32 32 33 33 /** 34 * An imagery panel used to add WMS imagery sources 34 * An imagery panel used to add WMS imagery sources. 35 * @since 2599 35 36 */ 36 37 public class AddWMSLayerPanel extends AddImageryPanel { … … 66 67 67 68 add(wmsInstruction = new JLabel(tr("4. Verify generated WMS URL")), GBC.eol()); 69 wmsInstruction.setLabelFor(wmsUrl); 68 70 add(wmsUrl, GBC.eop().fill()); 69 71 wmsUrl.setLineWrap(true); -
trunk/src/org/openstreetmap/josm/gui/preferences/imagery/ImageryPreference.java
r8401 r8426 69 69 /** 70 70 * Imagery preferences, including imagery providers, settings and offsets. 71 * @since 3715 71 72 */ 72 73 public final class ImageryPreference extends DefaultTabPreferenceSetting { … … 83 84 84 85 private ImageryPreference() { 85 super(/* ICON(preferences/) */ "imagery", tr("Imagery Preferences"), tr("Modify list of imagery layers displayed in the Imagery menu"), false, new JTabbedPane()); 86 super(/* ICON(preferences/) */ "imagery", tr("Imagery Preferences"), tr("Modify list of imagery layers displayed in the Imagery menu"), 87 false, new JTabbedPane()); 86 88 } 87 89 … … 100 102 final JLabel lbl = new JLabel(name); 101 103 lbl.setFont(lbl.getFont().deriveFont(Font.BOLD)); 104 lbl.setLabelFor(section); 102 105 p.add(lbl,GBC.std()); 103 106 p.add(new JSeparator(), GBC.eol().fill(GBC.HORIZONTAL).insets(5, 0, 0, 0)); -
trunk/src/org/openstreetmap/josm/gui/preferences/imagery/WMSSettingsPanel.java
r7937 r8426 60 60 JLabel labelSimConn = new JLabel(tr("Simultaneous connections:")); 61 61 spinSimConn = new JSpinner(new SpinnerNumberModel(WMSLayer.PROP_SIMULTANEOUS_CONNECTIONS.get().intValue(), 1, 30, 1)); 62 labelSimConn.setLabelFor(spinSimConn); 62 63 add(labelSimConn, GBC.std()); 63 64 add(GBC.glue(5, 0), GBC.std()); … … 72 73 spinEast = new JSpinner(new SpinnerNumberModel(WMSLayer.PROP_OVERLAP_EAST.get().intValue(), 1, 50, 1)); 73 74 spinNorth = new JSpinner(new SpinnerNumberModel(WMSLayer.PROP_OVERLAP_NORTH.get().intValue(), 1, 50, 1)); 75 labelEast.setLabelFor(spinEast); 76 labelNorth.setLabelFor(spinNorth); 74 77 75 78 JPanel overlapPanel = new JPanel(new FlowLayout()); … … 82 85 add(overlapPanel, GBC.eop()); 83 86 } 84 87 85 88 /** 86 89 * Loads the WMS settings. … … 94 97 this.spinSimConn.setValue(WMSLayer.PROP_SIMULTANEOUS_CONNECTIONS.get()); 95 98 } 96 99 97 100 /** 98 101 * Saves the WMS settings. … … 107 110 108 111 HTMLGrabber.PROP_BROWSER.put(browser.getEditor().getItem().toString()); 109 112 110 113 return false; 111 114 } -
trunk/src/org/openstreetmap/josm/gui/preferences/map/BackupPreference.java
r7509 r8426 60 60 61 61 final JLabel autosaveIntervalLabel = new JLabel(tr("Auto save interval (seconds)")); 62 autosaveIntervalLabel.setLabelFor(autosaveInterval); 62 63 panel.add(autosaveIntervalLabel, GBC.std().insets(60,0,0,0)); 63 64 autosaveInterval.setText(Integer.toString(AutosaveTask.PROP_INTERVAL.get())); … … 67 68 68 69 final JLabel backupPerLayerLabel = new JLabel(tr("Auto saved files per layer")); 70 backupPerLayerLabel.setLabelFor(backupPerLayer); 69 71 panel.add(backupPerLayerLabel, GBC.std().insets(60,0,0,0)); 70 72 backupPerLayer.setText(Integer.toString(AutosaveTask.PROP_FILES_PER_LAYER.get())); -
trunk/src/org/openstreetmap/josm/gui/preferences/plugin/PluginListPanel.java
r8390 r8426 256 256 } 257 257 }); 258 lblPlugin.setLabelFor(description); 258 259 259 260 gbc.gridx = 1; -
trunk/src/org/openstreetmap/josm/gui/preferences/plugin/PluginUpdatePolicyPanel.java
r8404 r8426 96 96 pnl.add(lblUpdateInterval = new JLabel(tr("Update interval (in days):"))); 97 97 pnl.add(tfUpdateInterval = new JosmTextField(5)); 98 lblUpdateInterval.setLabelFor(tfUpdateInterval); 98 99 SelectAllOnFocusGainedDecorator.decorate(tfUpdateInterval); 99 100 return pnl; … … 126 127 bgTimeBasedUpdatePolicy.add(btn); 127 128 128 JMultilineLabel lbl = new JMultilineLabel(tr("Please decide whether JOSM shall automatically update active plugins after a certain period of time.")); 129 JMultilineLabel lbl = new JMultilineLabel( 130 tr("Please decide whether JOSM shall automatically update active plugins after a certain period of time.")); 129 131 gc.gridy=0; 130 132 pnl.add(lbl, gc); -
trunk/src/org/openstreetmap/josm/gui/preferences/projection/ProjectionPreference.java
r7021 r8426 329 329 projPanel.add(projSubPrefPanelWrapper, GBC.eol().fill(GBC.HORIZONTAL).insets(20,5,5,5)); 330 330 331 projectionCodeLabel.setLabelFor(projectionCode); 332 projectionNameLabel.setLabelFor(projectionName); 333 331 334 projPanel.add(new JSeparator(), GBC.eol().fill(GBC.HORIZONTAL).insets(0,5,0,10)); 332 335 projPanel.add(new JLabel(tr("Display coordinates as")), GBC.std().insets(5,5,0,5)); -
trunk/src/org/openstreetmap/josm/gui/preferences/server/FeaturesPanel.java
r8218 r8426 50 50 } 51 51 }); 52 52 53 53 intervalLabel = new JLabel(tr("Check interval (minutes):")); 54 intervalLabel.setLabelFor(notifierInterval); 54 55 add(intervalLabel, GBC.std().insets(25, 0, 0, 0)); 55 56 … … 59 60 60 61 final JLabel notesDaysClosedLabel = new JLabel(tr("Max age for closed notes (days):")); 62 notesDaysClosedLabel.setLabelFor(notesDaysClosed); 61 63 notesDaysClosedLabel.setToolTipText(tr("Specifies the number of days a note needs to be closed to no longer be downloaded")); 62 64 add(notesDaysClosedLabel, GBC.std().insets(0, 20, 0, 0)); … … 64 66 notesDaysClosed.setMinimumSize(notesDaysClosed.getPreferredSize()); 65 67 add(notesDaysClosed, GBC.eol().insets(5, 20, 0, 0)); 68 } 66 69 67 }68 69 70 private void updateEnabledState() { 70 71 boolean enabled = notifier.isSelected(); … … 100 101 // Even if they have not changed, 101 102 } else { 102 // notifier should be stopped if user is no more identified enough 103 // notifier should be stopped if user is no more identified enough 103 104 if (!MessageNotifier.isUserEnoughIdentified()) { 104 105 MessageNotifier.stop(); -
trunk/src/org/openstreetmap/josm/gui/preferences/server/OsmApiUrlInputPanel.java
r8373 r8426 88 88 gc.weightx = 1.0; 89 89 add(tfOsmServerUrl = new JosmTextField(), gc); 90 lblApiUrl.setLabelFor(tfOsmServerUrl); 90 91 SelectAllOnFocusGainedDecorator.decorate(tfOsmServerUrl); 91 92 valOsmServerUrl = new ApiUrlValidator(tfOsmServerUrl); -
trunk/src/org/openstreetmap/josm/io/GpxExporter.java
r8061 r8426 95 95 JCheckBox author = new JCheckBox(tr("Add author information"), Main.pref.getBoolean("lastAddAuthor", true)); 96 96 p.add(author, GBC.eol()); 97 97 98 JLabel nameLabel = new JLabel(tr("Real name")); 98 99 p.add(nameLabel, GBC.std().insets(10, 0, 5, 0)); 99 100 JosmTextField authorName = new JosmTextField(); 100 101 p.add(authorName, GBC.eol().fill(GBC.HORIZONTAL)); 102 nameLabel.setLabelFor(authorName); 103 101 104 JLabel emailLabel = new JLabel(tr("E-Mail")); 102 105 p.add(emailLabel, GBC.std().insets(10, 0, 5, 0)); 103 106 JosmTextField email = new JosmTextField(); 104 107 p.add(email, GBC.eol().fill(GBC.HORIZONTAL)); 108 emailLabel.setLabelFor(email); 109 105 110 JLabel copyrightLabel = new JLabel(tr("Copyright (URL)")); 106 111 p.add(copyrightLabel, GBC.std().insets(10, 0, 5, 0)); 107 112 JosmTextField copyright = new JosmTextField(); 108 113 p.add(copyright, GBC.std().fill(GBC.HORIZONTAL)); 114 copyrightLabel.setLabelFor(copyright); 115 109 116 JButton predefined = new JButton(tr("Predefined")); 110 117 p.add(predefined, GBC.eol().insets(5, 0, 0, 0)); 118 111 119 JLabel copyrightYearLabel = new JLabel(tr("Copyright year")); 112 120 p.add(copyrightYearLabel, GBC.std().insets(10, 0, 5, 5)); 113 121 JosmTextField copyrightYear = new JosmTextField(""); 114 122 p.add(copyrightYear, GBC.eol().fill(GBC.HORIZONTAL)); 123 copyrightYearLabel.setLabelFor(copyrightYear); 124 115 125 JLabel warning = new JLabel("<html><font size='-2'> </html"); 116 126 p.add(warning, GBC.eol().fill(GBC.HORIZONTAL).insets(15, 0, 0, 0)); -
trunk/src/org/openstreetmap/josm/io/session/GeoImageSessionExporter.java
r7937 r8426 45 45 final JLabel lbl = new JLabel(layer.getName(), layer.getIcon(), SwingConstants.LEFT); 46 46 lbl.setToolTipText(layer.getToolTipText()); 47 lbl.setLabelFor(export); 47 48 p.add(export, GBC.std()); 48 49 p.add(lbl, GBC.std()); -
trunk/src/org/openstreetmap/josm/io/session/GpxTracksSessionExporter.java
r7937 r8426 64 64 final JLabel lbl = new JLabel(layer.getName(), layer.getIcon(), SwingConstants.LEFT); 65 65 lbl.setToolTipText(layer.getToolTipText()); 66 66 lbl.setLabelFor(export); 67 67 JLabel lblData = new JLabel(tr("Data:")); 68 68 /* I18n: Refer to a OSM data file in session file */ link = new JRadioButton(tr("local file")); -
trunk/src/org/openstreetmap/josm/io/session/ImagerySessionExporter.java
r7937 r8426 57 57 final JLabel lbl = new JLabel(layer.getName(), layer.getIcon(), SwingConstants.LEFT); 58 58 lbl.setToolTipText(layer.getToolTipText()); 59 lbl.setLabelFor(export); 59 60 p.add(export, GBC.std()); 60 61 p.add(lbl, GBC.std()); -
trunk/src/org/openstreetmap/josm/io/session/MarkerSessionExporter.java
r7937 r8426 52 52 final JLabel lbl = new JLabel(layer.getName(), layer.getIcon(), SwingConstants.LEFT); 53 53 lbl.setToolTipText(layer.getToolTipText()); 54 lbl.setLabelFor(export); 54 55 p.add(export, GBC.std()); 55 56 p.add(lbl, GBC.std()); -
trunk/src/org/openstreetmap/josm/io/session/OsmDataSessionExporter.java
r7082 r8426 89 89 final JLabel lbl = new JLabel(layer.getName(), layer.getIcon(), SwingConstants.LEFT); 90 90 lbl.setToolTipText(layer.getToolTipText()); 91 91 lbl.setLabelFor(export); 92 92 JLabel lblData = new JLabel(tr("Data:")); 93 93 /* I18n: Refer to a OSM data file in session file */ link = new JRadioButton(tr("local file"));
Note:
See TracChangeset
for help on using the changeset viewer.