Changeset 4364 in josm for trunk


Ignore:
Timestamp:
2011-08-28T01:23:51+02:00 (13 years ago)
Author:
simon04
Message:

MOTD: get rid of unnecessary space in front of external links

File:
1 edited

Legend:

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

    r3530 r4364  
    2929public class GettingStarted extends JPanel {
    3030    private String content = "";
    31     static private String styles = "<style type=\"text/css\">\n"
    32         + "body { font-family: sans-serif; font-weight: bold; }\n" + "h1 {text-align: center;}\n" + "</style>\n";
     31    private static final String STYLE = "<style type=\"text/css\">\n"
     32            + "body {font-family: sans-serif; font-weight: bold; }\n"
     33            + "h1 {text-align: center; }\n"
     34            + ".icon {font-size: 0; }\n"
     35            + "</style>\n";
    3336
    3437    public static class LinkGeneral extends JEditorPane implements HyperlinkListener {
     
    6770            String motd = new WikiReader().readLang("StartupPage");
    6871            if (motd.length() == 0) {
    69                 motd = "<html>" + styles + "<body><h1>" + "JOSM - " + tr("Java OpenStreetMap Editor")
     72                motd = "<html>" + STYLE + "<h1>" + "JOSM - " + tr("Java OpenStreetMap Editor")
    7073                + "</h1>\n<h2 align=\"center\">(" + tr("Message of the day not available") + ")</h2></html>";
    7174            }
     
    101104    public GettingStarted() {
    102105        super(new BorderLayout());
    103         final LinkGeneral lg = new LinkGeneral("<html>" + styles + "<h1>" + "JOSM - " + tr("Java OpenStreetMap Editor")
    104                 + "</h1><h2 align=\"center\">" + tr("Downloading \"Message of the day\"") + "</h2>");
     106        final LinkGeneral lg = new LinkGeneral("<html>" + STYLE + "<h1>" + "JOSM - " + tr("Java OpenStreetMap Editor")
     107                + "</h1><h2 align=\"center\">" + tr("Downloading \"Message of the day\"") + "</h2></html>");
    105108        // clear the build-in command ctrl+shift+O, because it is used as shortcut in JOSM
    106109        lg.getInputMap(JComponent.WHEN_FOCUSED).put(KeyStroke.getKeyStroke(KeyEvent.VK_O, InputEvent.SHIFT_MASK | InputEvent.CTRL_MASK), "none");
Note: See TracChangeset for help on using the changeset viewer.