United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-5070056 REGRESSION: JWindow stays on top of all other windows
JDK-5070056 : REGRESSION: JWindow stays on top of all other windows

Details
Type:
Bug
Submit Date:
2004-06-30
Status:
Resolved
Updated Date:
2006-11-21
Project Name:
JDK
Resolved Date:
2006-11-21
Component:
client-libs
OS:
linux
Sub-Component:
java.awt
CPU:
x86
Priority:
P3
Resolution:
Fixed
Affected Versions:
5.0
Fixed Versions:

Related Reports
Relates:
Relates:
Relates:

Sub Tasks

Description
Name: gm110360			Date: 06/30/2004


FULL PRODUCT VERSION :
java version "1.5.0-beta3"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta3-b56)
Java HotSpot(TM) Client VM (build 1.5.0-beta3-b56, mixed mode, sharing)


ADDITIONAL OS VERSION INFORMATION :
Linux linux 2.4.19-4GB #1 Fri Apr 2 19:59:17 UTC 2004 i686 unknown


EXTRA RELEVANT SYSTEM CONFIGURATION :
Using Java Desktop Release 2

A DESCRIPTION OF THE PROBLEM :
JWindow stays up on top of all other windows hiding other windows behind it.  Run the example below and try to move other frames or dialogs on top of the JWindow.

You can not change it even if you set setAlwaysOnTop to false. This breaks backwards compatibility. This issue only happens on the linux version. Windows version is fine.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Please see below

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
JWindow should have proper z ordering just like  before unless you setAlwaysOnTop to True
ACTUAL -
Stays on top

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
public class Test {
    public static void main(String[] args) {
        javax.swing.JWindow win = new javax.swing.JWindow();
        win.setBounds(0,0,100,100);
        win.show();
        
        javax.swing.JDialog dialog = new
           javax.swing.JDialog((java.awt.Frame)null, true);
        dialog.setBounds(0,0,50,50);
        dialog.show();
    }
}
---------- END SOURCE ----------

Release Regression From : 1.4.2
The above release value was the last known release where this 
bug was known to work. Since then there has been a regression.

(Incident Review ID: 280555) 
======================================================================

                                    

Comments
EVALUATION

Happens because we use override_redirect windows which always stay above any other windows on the desktop. Not a critical issue for Tiger - Windows are not supposed to be used as long-term toplevels, use undecorated Frames instead. However, we will try to fix this in Mustang.
###@###.### 2004-07-09
                                     
2004-07-09
EVALUATION

Fixed with 6380835.
                                     
2006-10-06



Hardware and Software, Engineered to Work Together