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

[Dialog] Dialogs with owner window set should inherit stylesheets

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8u40
    • 8u40
    • javafx

      Using a Dialog<T> class to create popup dialogs. Under the covers, Dialog creates a HeavyweightDialog which creates a Stage and Scene. If the Dialog.initOwner() is used, it would make sense for the Scene created to copy in the stylesheets from the Scene of the owner Window so that the scene graphs share the same styles.

      The workaround for me was to set a handler for Dialog.onShowing and inject styles on the Dialog.dialogPane.

            jgiles Jonathan Giles
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: