jdk/src/share/classes/javax/swing/Popup.java
changeset 4366 4446f3b8a9b4
parent 1190 f27065d0d9f0
child 5506 202f599c92aa
--- a/jdk/src/share/classes/javax/swing/Popup.java	Fri Nov 27 15:26:07 2009 +0300
+++ b/jdk/src/share/classes/javax/swing/Popup.java	Fri Nov 27 16:07:32 2009 +0300
@@ -227,12 +227,8 @@
         HeavyWeightWindow(Window parent) {
             super(parent);
             setFocusableWindowState(false);
-            Toolkit tk = Toolkit.getDefaultToolkit();
-            if (tk instanceof SunToolkit) {
-                // all the short-lived windows like Popups should be
-                // OverrideRedirect on X11 platforms
-                ((SunToolkit)tk).setOverrideRedirect(this);
-            }
+            setType(Window.Type.POPUP);
+
             // Popups are typically transient and most likely won't benefit
             // from true double buffering.  Turn it off here.
             getRootPane().setUseTrueDoubleBuffering(false);