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