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

[Stage] Setting 'icons' to null do not reset the Stage icon

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: fx1.2, 8u20
    • Fix Version/s: emb-8u6, 8u20
    • Component/s: javafx
    • Labels:

      Description

      This is reproducible with marina b05. Setting 'icons' to null do not reset the Stage icon.

      To reproduce, run the below test. It shows a Stage with a duke image set as Stage icon. On clicking a button on stage, the icons is set to null. This doesn't reset the Stage icon.

      import javafx.stage.*;
      import javafx.scene.*;
      import javafx.scene.image.*;
      import javafx.scene.control.*;

      var icons: Image[] = [Image {
          url: "http://sqindia.india.sun.com/disk11/jfc/mercurial_workspaces/FX_Test_WS/resources/images/duke.png"
      }, Image {
          url: "http://sqindia.india.sun.com/disk11/jfc/mercurial_workspaces/FX_Test_WS/resources/images/duke.jpg"
      }];
      Stage {
          width: 200
          height: 200
          icons: bind icons
          scene: Scene {
              content: Button {
                  text: "Null Icons"
                  action: function() {
                      //delete icons;
                      icons = null;
                  }
              }
          }
      }

        Attachments

          Activity

            People

            Assignee:
            snorthov Steve Northover (Inactive)
            Reporter:
            gramachasunw Girish Ramachandran (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: