JDK-8140529 : [macosx] Cannot click buttons in JOptionPane dialog after drag & drop operation.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 8u60
  • Priority: P3
  • Status: Closed
  • Resolution: Incomplete
  • OS: os_x
  • CPU: x86
  • Submitted: 2015-08-31
  • Updated: 2016-01-27
  • Resolved: 2016-01-27
Related Reports
Relates :  
Description
FULL PRODUCT VERSION :
java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)

ADDITIONAL OS VERSION INFORMATION :
Mac OS X Yosemite 10.10.4.

A DESCRIPTION OF THE PROBLEM :
I create a confirmation dialog using JOptionPane.createDialog. Since upgrading to b27, if I show this dialog to confirm a drag & drop operation, I cannot click on the buttons in the dialog (there is no visible feedback, no response). I can still use the keyboard to select the buttons, however. The problem does not occur when I use the confirmation dialog for any other action, only drag & drop. The problem did not occur with the early access release of 1.8.0_60.

I noticed that when the problem occurs, I can still click on the close button of the application's window. There is no immediate feedback, but if I then use the keyboard to dismiss the confirmation dialog, my application does respond to the click on the close button.

REGRESSION.  Last worked in version 8u60

ADDITIONAL REGRESSION INFORMATION: 
Worked correctly with the EA release, failed after I installed b27.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
I have an extension of TransferHandler. From the importData method, I call a method that creates the dialog using JOptionPane's createDialog method (before importData returns). When showing the resulting dialog, the buttons cannot be clicked.


REPRODUCIBILITY :
This bug can be reproduced always.


Comments
This looks like the duplicate of the issue JDK-8134917 which has been fixed in JDK 9 b85 and JDK 8u72. So we really needs to have an answer does the described issue reproduced on JDK 9 b88 (https://jdk9.java.net/download/) where the JDK-8134917 is fixed?
27-10-2015

JI Team to ask filer if the issue reproduces with JDK 9. https://jdk9.java.net/download/ Also need stand-alone/isolated reproducer.
08-10-2015