-
Bug
-
Resolution: Fixed
-
P4
-
None
-
OS X 10.8.1 (12B19)
java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b10)
Java HotSpot(TM) 64-Bit Server VM (build 23.3-b01, mixed mode)
We perform the following steps:
- create a new Stage (an additional one besides the primary Stage),
- add a Button to this new Stage and attach an OnAction EventHandler to the button,
- close the Stage (the new one) in the EventHandler.handle() method and
- finally create a new DirectoryChooser and call dirChooser.showDialog() - while being still in the EventHandler.handle() method.
On Mac OS X the call to dirChooser.showDialog() returns immediately with "null" but the native DirChooser Dialog is still open! The user can select a Directory but the Application will never receive the actual selection.
The exact same code works on openSuSE 12.1 and Windows XP. All Systems run Java7u7.
A short, self contained, correct (Compilable) example is attached to this issue (DirChooser.java)
- create a new Stage (an additional one besides the primary Stage),
- add a Button to this new Stage and attach an OnAction EventHandler to the button,
- close the Stage (the new one) in the EventHandler.handle() method and
- finally create a new DirectoryChooser and call dirChooser.showDialog() - while being still in the EventHandler.handle() method.
On Mac OS X the call to dirChooser.showDialog() returns immediately with "null" but the native DirChooser Dialog is still open! The user can select a Directory but the Application will never receive the actual selection.
The exact same code works on openSuSE 12.1 and Windows XP. All Systems run Java7u7.
A short, self contained, correct (Compilable) example is attached to this issue (DirChooser.java)