You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment it seems wherever I configure my stage object in my start method, there is a lag after the stage being shown to when it is modified. Given the example:
public class Demo extends Application {
public static void main(String[] args) {
launch(args);
}
@Override
public void start(Stage primaryStage)
{
VBox box = new VBox();
Scene scene = new Scene(box, 350, 200);
primaryStage.setScene(scene);
primaryStage.setTitle("Indent Demo");
FxStage.configure(primaryStage).apply();
primaryStage.show();
}
}
Or even just
public void start(Stage primaryStage)
{
VBox box = new VBox();
FxStage.create(box).apply().getStage().show();
}
There is a short period of time where the stage is displayed in its vanilla javafx look before it changes.
Is there a way to prevent this? Perhaps hiding the visibility of the stage until the configuration has been made and then showing it?
The text was updated successfully, but these errors were encountered:
Unfortunately, show() needs to be called in order to create the Window. Only then I can access the window handle and modify it. There might be a way to create the window handle before calling show() but IIRC I tried this and debugged deep into JavaFX's source code and it seemed impossible.
I'm not sure if I tried hiding the stage but I don't think one can hide a stage that hasn't been shown :-) I think as soon as you call show() you'll get the flicker, no matter what you do. But feel free to prove me wrong :D
At the moment it seems wherever I configure my stage object in my start method, there is a lag after the stage being shown to when it is modified. Given the example:
Or even just
There is a short period of time where the stage is displayed in its vanilla javafx look before it changes.
Is there a way to prevent this? Perhaps hiding the visibility of the stage until the configuration has been made and then showing it?
The text was updated successfully, but these errors were encountered: