changeset 104:9306c5d6344f

6304277: PIT: Adding a TrayIcon closes a SplashScreen on Solaris but not on Win32 Summary: The Window.closeSplashScreen() method now verified the boolean flag isTrayIconWindow, and returns if it is true. Reviewed-by: son, dcherepanov
author anthony
date Tue, 18 Mar 2008 14:36:14 +0300
parents e8b40b676b89
children fc0164db7a3b
files src/share/classes/java/awt/Window.java
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/awt/Window.java	Tue Mar 18 14:20:28 2008 +0300
+++ b/src/share/classes/java/awt/Window.java	Tue Mar 18 14:36:14 2008 +0300
@@ -826,7 +826,10 @@
     static private final AtomicBoolean
         beforeFirstWindowShown = new AtomicBoolean(true);
 
-    static final void closeSplashScreen() {
+    final void closeSplashScreen() {
+        if (isTrayIconWindow) {
+            return;
+        }
         if (beforeFirstWindowShown.getAndSet(false)) {
             SunToolkit.closeSplashScreen();
         }