Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8189721

(MAC OSX 10.12.4)(8u152/162) Swing dialog hides behind the parent frame when navigating away from the dialog.

XMLWordPrintable

      FULL PRODUCT VERSION :
      1.8.0_162-ea-b01

      ADDITIONAL OS VERSION INFORMATION :
        System Version: macOS 10.12.4 (16E195)
        Kernel Version: Darwin 16.5.0


      A DESCRIPTION OF THE PROBLEM :
      When spawning a swing dialog from a parent frame on MAC OSX, we are able to navigate away from the dialog i.e. clicking back onto the parent dialog navigates away from the dialog, pushes the spawned dialog behind the parent and gives some nasty side effects.





      REGRESSION. Last worked in version 8u144

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      A simple reproduction can be done with the dialog example given on the Oracle website:
      https://docs.oracle.com/javase/tutorial/uiswing/components/dialog.html

      See attached video for reproducing the bug: https://vimeo.com/238558118

      STEPS:

      Open up any application that spaws a dialog on the MAC OSX.
      Open up the dialog.
      Click back onto the parent of the dialog.
      Notice that the dialog is hidden and then reside behind the parent and cannot be closed until the parent is moved.




      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The dialog should reside on the top and we should be able to close/accept/reject the dialog.
      ACTUAL -
      Notice that the dialog is hidden and then reside behind the parent and cannot be closed until the parent is moved.


      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      You can see a demonstrating webstart application at: https://docs.oracle.com/javase/tutorial/uiswing/components/dialog.html
      ---------- END SOURCE ----------

            pardesha Pardeep Sharma
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: