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

[Dialog] Dialogs with owner window set should inherit stylesheets

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8u40
    • Fix Version/s: 8u40
    • Component/s: javafx
    • Labels:

      Description

      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.

        Attachments

          Activity

            People

            Assignee:
            jgiles Jonathan Giles
            Reporter:
            duke J. Duke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: