- Timestamp:
- 2011-08-28T01:23:51+02:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/GettingStarted.java
r3530 r4364 29 29 public class GettingStarted extends JPanel { 30 30 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"; 33 36 34 37 public static class LinkGeneral extends JEditorPane implements HyperlinkListener { … … 67 70 String motd = new WikiReader().readLang("StartupPage"); 68 71 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") 70 73 + "</h1>\n<h2 align=\"center\">(" + tr("Message of the day not available") + ")</h2></html>"; 71 74 } … … 101 104 public GettingStarted() { 102 105 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>"); 105 108 // clear the build-in command ctrl+shift+O, because it is used as shortcut in JOSM 106 109 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.