Changeset 9391 in josm


Ignore:
Timestamp:
2016-01-10T15:07:43+01:00 (9 years ago)
Author:
simon04
Message:

fix #12330 - Misaligned imagery warning should support line break

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/AlignImageryPanel.java

    r9221 r9391  
    1313import javax.swing.JButton;
    1414import javax.swing.JCheckBox;
    15 import javax.swing.JLabel;
    1615import javax.swing.JPanel;
    1716import javax.swing.border.CompoundBorder;
     
    2221import org.openstreetmap.josm.data.imagery.ImageryInfo;
    2322import org.openstreetmap.josm.data.preferences.BooleanProperty;
     23import org.openstreetmap.josm.gui.widgets.JMultilineLabel;
    2424import org.openstreetmap.josm.gui.widgets.UrlLabel;
    2525import org.openstreetmap.josm.tools.GBC;
     
    4040    public AlignImageryPanel(boolean oneLine, final BooleanProperty showAgain, ImageryInfo infoToAdd) {
    4141        Font font = getFont().deriveFont(Font.PLAIN, 14.0f);
    42         JLabel nagLabel = new JLabel(
     42        JMultilineLabel nagLabel = new JMultilineLabel(
    4343                tr("Aerial imagery \"{0}\" might be misaligned. Please check its offset using GPS tracks!", infoToAdd.getName()));
    4444        UrlLabel detailsList = new UrlLabel(tr("http://wiki.openstreetmap.org/wiki/Using_Imagery"), tr("Details..."));
    45         nagLabel.setLabelFor(detailsList);
    4645        nagLabel.setFont(font);
    4746        nagLabel.setForeground(Color.BLACK);
Note: See TracChangeset for help on using the changeset viewer.