Relates :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
JDK-8175966 :
|
The following code opens a stage with a dark background color. On my system (see environment) this results in a white flashing when the stage is shown, i.e. there appears to be at least one paint operation before the background color has been applied. This is a show-stopper for delivering our commercial product quality-wise. {code} import javafx.application.Application; import javafx.geometry.Insets; import javafx.scene.Scene; import javafx.scene.layout.Background; import javafx.scene.layout.BackgroundFill; import javafx.scene.layout.CornerRadii; import javafx.scene.layout.StackPane; import javafx.scene.paint.Color; import javafx.stage.Stage; public class JFXFlashTest extends Application { @Override public void start(Stage primaryStage) throws Exception { final StackPane pane = new StackPane(); pane.setBackground(new Background(new BackgroundFill(Color.rgb(54, 54, 54), CornerRadii.EMPTY, Insets.EMPTY))); final Scene scene = new Scene(pane, 1024, 768); primaryStage.setScene(scene); primaryStage.show(); } public static void main(String[] args) { launch(args); } } {code}
|