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

AppletStageExtension - When defaultclose is overriden after closing Applet is not restored.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P2 P2
    • fx2.0
    • fx1.2
    • javafx
    • windowsxp-sp3

      AppletStageExtension - When defaultclose is overriden after closing Applet is not restored.

      Example:
      var rectangle:Rectangle = Rectangle {
          x: 100
          y: 100
          width: 100
          height: 100
          fill: Color.RED
          onMouseClicked: function(e: MouseEvent): Void {
                          s.close();
          }
      }

      var s: Stage = Stage {
          title: "AppDeploy Demo"
          width: 300
          height: 200
          style: StageStyle.TRANSPARENT
          opacity: 0.5
          scene: Scene {
              content: [
                  Text {
                      content: bind textContent
                      x: 25
                      y:35
                      fill: Color.BLACK
                      font:Font{
                          size: 24
                  }},
                  rectangle
              ]
          }
          extensions: [ AppletStageExtension {
                  shouldDragStart: function(e: MouseEvent): Boolean {
                      return e.shiftDown and e.primaryButtonDown;
                  }
                  useDefaultClose: false
                  onAppletRestored:function (){
                      isAppletRestored = true;
                  }
           } ]
      }

      Take this code. After dragging out Clicking on the rectangle suppose to take Applet back to Browser.
      Actual Behaviour:
      a) Applet is not visible after clicking the rectangle .
      b) isAppletRestored variable is still false. Means onAppletRestored is not called .

            tonywyant Tony Wyant (Inactive)
            rnairjfx Raghu K Nair (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: