-
Bug
-
Resolution: Fixed
-
P3
-
8, 9
-
Mac OS 10.9.3, Retina MBP, Linux
-
b145
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}
{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}
- relates to
-
JDK-8170555 [Doc] Need better javadoc on Scene.fillProperty
-
- Open
-
-
JDK-8171852 JavaFX Stage flickers on resize on Windows platforms
-
- Resolved
-
-
JDK-8171976 Linux: JavaFX window not painted with background when using GTK 3
-
- Resolved
-
-
JDK-8119109 Mac: When a window first shows up it shows black content, resulting in unpleasant visual flash
-
- Closed
-
-
JDK-8243939 Window flickers upon launch
-
- Open
-