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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Cannot Reproduce
    • Affects Version/s: fx1.1
    • Fix Version/s: fx1.2
    • Component/s: javafx
    • Labels:
      None
    • Environment:

      franca, mac 10.4, 10.5

      Description

      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
              }]
          }
      }


        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported: