JDK-8114059 : Showing a modal Stage doesn't block the application thread
  • Type: Bug
  • Component: javafx
  • Sub-Component: application-lifecycle
  • Affected Version: fx2.0
  • Priority: P4
  • Status: Resolved
  • Resolution: Not an Issue
  • Submitted: 2011-06-30
  • Updated: 2015-06-16
  • Resolved: 2011-06-30
Related Reports
Relates :  
Description
Code following the setVisible(true) of a Stage with initModality(Modality.APPLICATION_MODAL) or WINDOW_MODAL, and initOwner(non-null) executes without waiting for the modal Stage to be dismissed.

Discussion here: http://forums.oracle.com/forums/thread.jspa?threadID=2245804

db
Comments
Thank you, Kevin Rushforth I agree with Darryl Burke The ability to halt and wait for input is a necessary feature. I think that JavaFX should have a convenient class just like Swing JOptionPane.
02-01-2012

Thank you, Kevin. The ability to halt and wait for input is a necessary feature, so I look forward to the release of Alert. db
01-07-2011

This is by design. Events are not delivered to blocked windows, but the application thread continues to run normally. There is a JIRA Feature request for an Alert class that will block the caller, but it is not a committed feature for 2.0. See RT-12643
30-06-2011