JDK-6393608 : Parent Frame is pushing the dialog behind after calling frame.setVisible(true) in winxp
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2006-03-03
  • Updated: 2011-01-19
  • Resolved: 2006-04-05
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6 b79Fixed
Related Reports
Relates :  
Description
Parent frame is pushing the dialog behind after calling fram.setVisible(true) in winxp.

Step to Reproduce
----------------------
1. Run the Attached Program.after copying the image also to the same directory.
2. Click the Checkbox 'Add a system tray icon' to add the tray icon to the system tray. 
   You can see tray icon on the system tray.
3. Click on the "Browse" button. You can see the Filechooser on the top of the 
   frame(parent).
4. Right click on the TrayIcon. You can see the popup menu. 
5. Select  "MainWindow" MenuItem. If you see Frame (parent) on the top(front) of the 
   filechooser, then the bug is reproduce.

  Both the frame(parent) & Dialog are inactive (focus is not there on the filechooser). Click on the titlebar of the frame. You can see the Dialog appearing in front of the Frame(parent).

I tested this with Mustage b51 to b73.

Comments
EVALUATION There is an RFE about refactoring of native file and print/page dialogs on Windows platform, however, it is too late for Mustang. This bug is a part of that RFE (only two methods, toFront and toBack, are to be implemented), so I consider it is safe enough for Mustang beta2.
16-03-2006

EVALUATION When any modal blocked windows is brought to front, its blocker is brouhgt too. The problem here is that toFront() method is not implemented for AWT native dialogs, as well as many others.
03-03-2006