Ticket #2115: FixMOTD.patch
| File FixMOTD.patch, 2.3 KB (added by , 17 years ago) |
|---|
-
src/org/openstreetmap/josm/gui/GettingStarted.java
189 189 190 190 public GettingStarted() { 191 191 super(new BorderLayout()); 192 final LinkGeneral lg = new LinkGeneral(tr("Download \"Message of the day\"")); 192 final LinkGeneral lg = new LinkGeneral( 193 "<html><body>\n<h1>" + 194 "JOSM - " + 195 tr("Java OpenStreetMap Editor") + 196 "</h1>\n<h2 align=\"center\">" + 197 tr("Downloading \"Message of the day\"") + 198 "</h2>"); 193 199 JScrollPane scroller = new JScrollPane(lg); 194 // panel.add(GBC.glue(0,1), GBC.eol());195 //panel.setMinimumSize(new Dimension(400, 600));196 200 Component linkGeneral = new LinkGeneral(content); 197 201 scroller.setViewportBorder(new EmptyBorder(10,100,10,100)); 198 202 add(scroller, BorderLayout.CENTER); -
src/org/openstreetmap/josm/Main.java
113 113 * The main menu bar at top of screen. 114 114 */ 115 115 public final MainMenu menu; 116 117 /** 118 * The MOTD Layer. 119 */ 120 private GettingStarted gettingStarted=new GettingStarted(); 116 121 117 122 /** 118 123 * Print a debug message if debugging is on. … … 144 149 map.fillPanel(panel); 145 150 else { 146 151 old.destroy(); 147 panel.add( new GettingStarted(), BorderLayout.CENTER);152 panel.add(gettingStarted, BorderLayout.CENTER); 148 153 } 149 154 panel.setVisible(true); 150 155 redoUndoListener.commandChanged(0,0); … … 173 178 // platform = determinePlatformHook(); 174 179 platform.startupHook(); 175 180 contentPane.add(panel, BorderLayout.CENTER); 176 if(splash != null) splash.setStatus(tr("Download \"Message of the day\"")); 177 panel.add(new GettingStarted(), BorderLayout.CENTER); 181 panel.add(gettingStarted, BorderLayout.CENTER); 178 182 179 183 if(splash != null) splash.setStatus(tr("Creating main GUI")); 180 184 menu = new MainMenu();
