6304277: PIT: Adding a TrayIcon closes a SplashScreen on Solaris but not on Win32

The Window.closeSplashScreen() method now verified the boolean flag isTrayIconWindow, and returns if it is true.

Reviewed-by: son, dcherepanov
This commit is contained in:
Anthony Petrov 2008-03-18 14:36:14 +03:00
parent 80a01c0796
commit 8813269b78

View File

@ -826,7 +826,10 @@ public class Window extends Container implements Accessible {
static private final AtomicBoolean
beforeFirstWindowShown = new AtomicBoolean(true);
static final void closeSplashScreen() {
final void closeSplashScreen() {
if (isTrayIconWindow) {
return;
}
if (beforeFirstWindowShown.getAndSet(false)) {
SunToolkit.closeSplashScreen();
}