Changeset 8525 in josm


Ignore:
Timestamp:
2015-06-23T09:02:53+02:00 (6 years ago)
Author:
simon04
Message:

see #11591, see #11355 - Splash screen: attempt to fix lock issue (2)

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

Legend:

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

    r8510 r8525  
    3838import java.util.Set;
    3939import java.util.TreeSet;
     40import java.util.concurrent.Callable;
    4041
    4142import javax.swing.JFrame;
     
    402403        OAuthAccessTokenHolder.getInstance().init(Main.pref, CredentialsManager.getInstance());
    403404
    404         final SplashScreen splash = new SplashScreen();
     405        final SplashScreen splash = GuiHelper.runInEDTAndWaitAndReturn(new Callable<SplashScreen>() {
     406            @Override
     407            public SplashScreen call() {
     408                return new SplashScreen();
     409            }
     410        });
    405411        final SplashScreen.SplashProgressMonitor monitor = splash.getProgressMonitor();
    406412        monitor.beginTask(tr("Initializing"));
  • trunk/src/org/openstreetmap/josm/gui/SplashScreen.java

    r8524 r8525  
    391391            lblTaskTitle.setText(LABEL_HTML + tasks);
    392392            lblTaskTitle.setCaretPosition(lblTaskTitle.getDocument().getLength());
    393             repaint();
    394393        }
    395394    }
Note: See TracChangeset for help on using the changeset viewer.