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

Setting a transparent stage with transparent fill to fullscreen makes the stage filled black

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3 P3
    • fx1.2
    • fx1.1
    • javafx
    • None
    • franca, mac 10.4, 10.5

      This is reproducible only with franca on mac platforms. Works fine on windows

      I'm showing a transparent stage which is filled with transparent color to fullscreen. This makes the stage fullscreen, but the scene is filled with black.

      import javafx.scene.*;
      import javafx.stage.*;
      import javafx.ext.swing.*;
      import javafx.scene.shape.*;
      import javafx.scene.paint.*;

      var fullScreen: Boolean = false;
      var opacity: Integer = 100 on replace {
          opacityNum = (opacity / 100.0) as Number;
      };
      var opacityNum: Number = 1.0 on replace {
          opacity = (opacityNum * 100.0) as Integer;
      };
      Stage {
          style: StageStyle.TRANSPARENT;
          fullScreen: bind fullScreen
          opacity: bind opacityNum with inverse
          scene: Scene {
              fill: Color.TRANSPARENT
              content: [Rectangle {
                  width: 100
                  height: 100
                  x: 50
                  y: 50
                  fill: Color.BLUE
              }, SwingSlider {
                  minimum: 0
                  maximum: 100
                  value: bind opacity with inverse
                  translateX: 40
                  translateY: 200
                  width: 80
              }, SwingCheckBox {
                  text: "FullScreen"
                  selected: bind fullScreen with inverse
                  translateX: 40
                  translateY: 230
              }]
          }
      }


            tdv Dmitri Trembovetski (Inactive)
            gramachasunw Girish Ramachandran (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: