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

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

File:
1 edited

Legend:

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

    r8378 r8426  
    4949
    5050    /** Temporary layer where downloaded primitives are put */
    51     private OsmDataLayer tmpLayer;
     51    private final OsmDataLayer tmpLayer;
    5252    /** Reference to the task that download requested primitives */
    5353    private DownloadPrimitivesTask mainTask;
     
    209209        JPanel p = new JPanel(new GridBagLayout());
    210210        p.add(new HtmlPanel(text), GBC.eop());
     211        JosmTextArea txt = new JosmTextArea();
    211212        if (listLabel != null) {
    212213            JLabel missing = new JLabel(listLabel);
    213214            missing.setFont(missing.getFont().deriveFont(Font.PLAIN));
     215            missing.setLabelFor(txt);
    214216            p.add(missing, GBC.eol());
    215217        }
    216         JosmTextArea txt = new JosmTextArea();
    217218        txt.setFont(GuiHelper.getMonospacedFont(txt));
    218219        txt.setEditable(false);
     
    227228                Main.parent,
    228229                title,
    229                 new String[] { tr("Ok") })
    230         .setButtonIcons(new String[] { "ok" })
     230                new String[] {tr("Ok")})
     231        .setButtonIcons(new String[] {"ok"})
    231232        .setIcon(msgType)
    232233        .setContent(p, false);
Note: See TracChangeset for help on using the changeset viewer.