JDK-5093914 : SwingSet: Message dialog hides behind the Custom Layout FileChooser dilog if Abo
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.4.2,5.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic,linux
  • CPU: generic,x86
  • Submitted: 2004-08-30
  • Updated: 2005-05-05
  • Resolved: 2005-05-05
Related Reports
Duplicate :  
Duplicate :  
Duplicate :  
Relates :  
Description
Bug Info:
---------
Message dialog hides behind the Custom Layout FileChooser dilog if About button clicks twice on cinnabar machine in a SwingSet apllication($JAVA_HOME/demo/jfc/SwingSet2/).


Jdk Info:
---------
java version "1.5.0-rc"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-rc-b63)
Java HotSpot(TM) Client VM (build 1.5.0-rc-b63, mixed mode, sharing)


Steps to reproduce:
-------------------
1. Enter the following command in the console.

 ${JAVA_HOME}/bin/java -jar ../demo/jfc/SwingSet2/*.jar

2. Click on JFileChooser Demo icon

3. Click on Show Custom FileChooser button.

4. Click About button twice.


Expected Behavior:
------------------
For First Click on About button,the message dialog should popup and the next click,no action should happend.


Actual Behavior:
----------------
For First Click on About button,the message dialog has been popup and the next click,the message dialog popup hides behind the Custom Layout FileChooser dialog.


Additional Info :
-----------------
The above scenario is working fine in all the platforms except Cinnabar.
 
###@###.### 2004-08-30
###@###.### 2004-08-31

Comments
EVALUATION Platform dependent. Sounds like an AWT issue. ###@###.### 2004-08-30 That is an issue with modality implementation. We set TRANSIENT_FOR property on all dialogs to prevent them to be below parent windows. The problem is that in SwingSet demo JOptionPane used for displaying the message is a child not for a FileChooser dialog but for the main SwingSet demo window. So there is no z-order relation for file chooser and option pane specified. Since currently there is only one kind of modality in AWT (application-wide) that is certainly a bug. We'll try to fix it in Mustang as well as many other modality-related bugs ###@###.### 2004-08-31 Fixed as a part of 4080029 (modality umbrella bug) together with many other z-order modality bugs (5095181, 5100174). All these bugs are the same as 4255200, which is about wrong z-order for modal blocked windows on Linux/XToolkit, so I'm marking this as duplicate of 4255200. ###@###.### 2005-05-05 08:01:35 GMT
05-05-2005

WORK AROUND Possible workaround may be to show JOptionPane with a FileChooser as a parent instead of SwingSet main window ###@###.### 2004-08-31
31-08-2004