- Timestamp:
- 2009-01-11T03:44:18+01:00 (16 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/Main.java
r1213 r1239 49 49 import org.openstreetmap.josm.gui.MapFrame; 50 50 import org.openstreetmap.josm.gui.PleaseWaitDialog; 51 import org.openstreetmap.josm.gui.SplashScreen; 51 52 import org.openstreetmap.josm.gui.download.BoundingBoxSelection; 52 53 import org.openstreetmap.josm.gui.download.DownloadDialog.DownloadTask; … … 194 195 195 196 public Main() { 197 this(null); 198 } 199 200 public Main(SplashScreen splash) { 196 201 main = this; 197 202 // platform = determinePlatformHook(); 198 203 platform.startupHook(); 199 204 contentPane.add(panel, BorderLayout.CENTER); 205 if(splash != null) splash.setStatus(tr("Download \"Message of the day\"")); 200 206 panel.add(new GettingStarted(), BorderLayout.CENTER); 207 208 if(splash != null) splash.setStatus(tr("Creating main GUI")); 201 209 menu = new MainMenu(); 202 210 -
trunk/src/org/openstreetmap/josm/gui/MainApplication.java
r1205 r1239 46 46 * display the frame. 47 47 */ 48 public MainApplication(JFrame mainFrame ) {49 super( );48 public MainApplication(JFrame mainFrame, SplashScreen splash) { 49 super(splash); 50 50 mainFrame.setContentPane(contentPane); 51 51 mainFrame.setJMenuBar(menu); … … 206 206 JFrame mainFrame = new JFrame(tr("Java OpenStreetMap Editor")); 207 207 Main.parent = mainFrame; 208 final Main main = new MainApplication(mainFrame );208 final Main main = new MainApplication(mainFrame, splash); 209 209 splash.setStatus(tr("Loading plugins")); 210 210 Main.loadPlugins(false);
Note:
See TracChangeset
for help on using the changeset viewer.