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

Setting a stage with opacity < 1.0 to fullscreen makes the scene look transparent

    XMLWordPrintable

Details

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

    Description

      This is reproducible only on mac platforms, works fine on windows

      I'm showing a Stage with opacity < 1.0. If this stage is made fullscreen, the fullscreen's scene is shown with the opacity set, although the stage as such is opaque.

      To reproduce, run the below code. Changing the slider reduces the opacity of the Stage. Change the slider value and click the 'fullscreen' checkbox to make the Stage fullscreen. It can be seen that a fullscreen stage is shown, but the contents - rectangle, slider and checkbox looks transparent

      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 {
          fullScreen: bind fullScreen
          opacity: bind opacityNum with inverse
          scene: Scene {
              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

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

            Dates

              Created:
              Updated:
              Resolved:
              Imported: