Changeset 1239 in josm for trunk


Ignore:
Timestamp:
2009-01-11T03:44:18+01:00 (16 years ago)
Author:
ulfl
Message:

add the splash screen also to Main, so we can see the "message of the day" download time

Location:
trunk/src/org/openstreetmap/josm
Files:
2 edited

Legend:

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

    r1213 r1239  
    4949import org.openstreetmap.josm.gui.MapFrame;
    5050import org.openstreetmap.josm.gui.PleaseWaitDialog;
     51import org.openstreetmap.josm.gui.SplashScreen;
    5152import org.openstreetmap.josm.gui.download.BoundingBoxSelection;
    5253import org.openstreetmap.josm.gui.download.DownloadDialog.DownloadTask;
     
    194195
    195196    public Main() {
     197        this(null);
     198    }
     199   
     200    public Main(SplashScreen splash) {
    196201        main = this;
    197202//        platform = determinePlatformHook();
    198203        platform.startupHook();
    199204        contentPane.add(panel, BorderLayout.CENTER);
     205        if(splash != null) splash.setStatus(tr("Download \"Message of the day\""));
    200206        panel.add(new GettingStarted(), BorderLayout.CENTER);
     207       
     208        if(splash != null) splash.setStatus(tr("Creating main GUI"));
    201209        menu = new MainMenu();
    202210
  • trunk/src/org/openstreetmap/josm/gui/MainApplication.java

    r1205 r1239  
    4646     * display the frame.
    4747     */
    48     public MainApplication(JFrame mainFrame) {
    49         super();
     48    public MainApplication(JFrame mainFrame, SplashScreen splash) {
     49        super(splash);
    5050        mainFrame.setContentPane(contentPane);
    5151        mainFrame.setJMenuBar(menu);
     
    206206        JFrame mainFrame = new JFrame(tr("Java OpenStreetMap Editor"));
    207207        Main.parent = mainFrame;
    208         final Main main = new MainApplication(mainFrame);
     208        final Main main = new MainApplication(mainFrame, splash);
    209209        splash.setStatus(tr("Loading plugins"));
    210210        Main.loadPlugins(false);
Note: See TracChangeset for help on using the changeset viewer.