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
I am trying to show a modal box in a modal pane. This is my code:
public class AtlantaFxTest extends Application {
@Override
public void start(Stage stage) {
Application.setUserAgentStylesheet(new PrimerDark().getUserAgentStylesheet());
var modalPane = new ModalPane();
var box = new ModalBox(new TextArea("Fffffffffffffffffffffffffff"));
modalPane.show(box);
var root = new StackPane(modalPane);
Scene scene = new Scene(root, 600, 400);
stage.setScene(scene);
stage.show();
}
public static void main(String[] args) {
launch(args);
}
}
Could anyone say how to do it?
The text was updated successfully, but these errors were encountered:
public void start(Stage stage) {
Application.setUserAgentStylesheet(new PrimerDark().getUserAgentStylesheet());
var modalPane = new ModalPane();
var root = new StackPane(modalPane);
var box = new ModalBox(new TextArea("Fffffffffffffffffffffffffff"));
Scene scene = new Scene(root, 600, 400);
stage.setScene(scene);
stage.show();
modalPane.show(box);
}
I am trying to show a modal box in a modal pane. This is my code:
Could anyone say how to do it?
The text was updated successfully, but these errors were encountered: