Ignore:
Timestamp:
2015-05-26T01:37:50+02:00 (5 years ago)
Author:
Don-vip
Message:

Accessibility - global use of JLabel.setLabelFor() + various fixes (javadoc, code style)

Location:
trunk/src/org/openstreetmap/josm/io
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/GpxExporter.java

    r8061 r8426  
    9595        JCheckBox author = new JCheckBox(tr("Add author information"), Main.pref.getBoolean("lastAddAuthor", true));
    9696        p.add(author, GBC.eol());
     97
    9798        JLabel nameLabel = new JLabel(tr("Real name"));
    9899        p.add(nameLabel, GBC.std().insets(10, 0, 5, 0));
    99100        JosmTextField authorName = new JosmTextField();
    100101        p.add(authorName, GBC.eol().fill(GBC.HORIZONTAL));
     102        nameLabel.setLabelFor(authorName);
     103
    101104        JLabel emailLabel = new JLabel(tr("E-Mail"));
    102105        p.add(emailLabel, GBC.std().insets(10, 0, 5, 0));
    103106        JosmTextField email = new JosmTextField();
    104107        p.add(email, GBC.eol().fill(GBC.HORIZONTAL));
     108        emailLabel.setLabelFor(email);
     109
    105110        JLabel copyrightLabel = new JLabel(tr("Copyright (URL)"));
    106111        p.add(copyrightLabel, GBC.std().insets(10, 0, 5, 0));
    107112        JosmTextField copyright = new JosmTextField();
    108113        p.add(copyright, GBC.std().fill(GBC.HORIZONTAL));
     114        copyrightLabel.setLabelFor(copyright);
     115
    109116        JButton predefined = new JButton(tr("Predefined"));
    110117        p.add(predefined, GBC.eol().insets(5, 0, 0, 0));
     118
    111119        JLabel copyrightYearLabel = new JLabel(tr("Copyright year"));
    112120        p.add(copyrightYearLabel, GBC.std().insets(10, 0, 5, 5));
    113121        JosmTextField copyrightYear = new JosmTextField("");
    114122        p.add(copyrightYear, GBC.eol().fill(GBC.HORIZONTAL));
     123        copyrightYearLabel.setLabelFor(copyrightYear);
     124
    115125        JLabel warning = new JLabel("<html><font size='-2'>&nbsp;</html");
    116126        p.add(warning, GBC.eol().fill(GBC.HORIZONTAL).insets(15, 0, 0, 0));
  • trunk/src/org/openstreetmap/josm/io/session/GeoImageSessionExporter.java

    r7937 r8426  
    4545        final JLabel lbl = new JLabel(layer.getName(), layer.getIcon(), SwingConstants.LEFT);
    4646        lbl.setToolTipText(layer.getToolTipText());
     47        lbl.setLabelFor(export);
    4748        p.add(export, GBC.std());
    4849        p.add(lbl, GBC.std());
  • trunk/src/org/openstreetmap/josm/io/session/GpxTracksSessionExporter.java

    r7937 r8426  
    6464        final JLabel lbl = new JLabel(layer.getName(), layer.getIcon(), SwingConstants.LEFT);
    6565        lbl.setToolTipText(layer.getToolTipText());
    66 
     66        lbl.setLabelFor(export);
    6767        JLabel lblData = new JLabel(tr("Data:"));
    6868        /* 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  
    5757        final JLabel lbl = new JLabel(layer.getName(), layer.getIcon(), SwingConstants.LEFT);
    5858        lbl.setToolTipText(layer.getToolTipText());
     59        lbl.setLabelFor(export);
    5960        p.add(export, GBC.std());
    6061        p.add(lbl, GBC.std());
  • trunk/src/org/openstreetmap/josm/io/session/MarkerSessionExporter.java

    r7937 r8426  
    5252        final JLabel lbl = new JLabel(layer.getName(), layer.getIcon(), SwingConstants.LEFT);
    5353        lbl.setToolTipText(layer.getToolTipText());
     54        lbl.setLabelFor(export);
    5455        p.add(export, GBC.std());
    5556        p.add(lbl, GBC.std());
  • trunk/src/org/openstreetmap/josm/io/session/OsmDataSessionExporter.java

    r7082 r8426  
    8989        final JLabel lbl = new JLabel(layer.getName(), layer.getIcon(), SwingConstants.LEFT);
    9090        lbl.setToolTipText(layer.getToolTipText());
    91 
     91        lbl.setLabelFor(export);
    9292        JLabel lblData = new JLabel(tr("Data:"));
    9393        /* 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.