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

Mac: Modality no longer works on Mac OS X

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 7u6
    • 7u6
    • javafx

      Some time during the 2.2 release (not sure exactly when), modality stopped working on Mac OS X. To reproduce this, run either of the following programs in rt-closed/toys/HelloWorld:

      1. helloworld.HelloAlert

      Click on the "Toggle Color" button. This will bring up an appication modal dialog which should prevent any input events from being delivered to the first window. However, if you click on the "Question" button (or on the "Toggle Color" button again) you will see that the window is still active.

      2. helloworld.HelloModality

      Select either the "WINDOW_MODAL" or "APPLICATION_MODAL" radio button, then click on "Create Dialog". This will bring up a modal dialog that should block events from being delivered to the first window. However, you will see that the controls are active and will receive events.

      Both of the above programs behave correctly on Windows. Both of them work on Mac with JavaFX 2.1. Both of them fail on Mac with JavaFX 2.2.

            anthony Anthony Petrov (Inactive)
            kcr Kevin Rushforth
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: