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

[Dialog] Graphic is not cleared from Dialog when property 'graphic' is set to null

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 8u40
    • 8u40
    • javafx
    • None
    • Win7 x86

    Description

      A displayed Image (or any other Node) in a Dialog is not cleared, when it is removed from the scene graph by setting the property 'graphic' to null. This is the case if there is a header (graphic is displayed in the header) and also if not (graphic is displayed left of the content).

      To reproduce:
      - Create a Dialog and show it
      - Add a graphics Node with Dialog.setGraphic(Node node);
      - Remove the graphics node with Dialog.setGraphic(null);
      => The Node will still be displayed on screen

      See also Demo-Application:
      - Click on "Open Dialog"
      - Click on any Button to see the graphic Image change
      - Click on "- no image -" => The image will not be cleared

      Attachments

        Activity

          People

            jgiles Jonathan Giles
            ckeimeljfx Christoph Keimel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported: