I'm trying to show a simple dialog on the screen with JFoenix, however, every time I try to show, I get an error,"The JFXDialog container is not set" I know this means that stackPane was not shown, so I would like to know how to initialize StackPane and then show the dialog
The function:
@FXML
public StackPane stack;
public void show() {
JFXDialog dialog = new JFXDialog();
dialog.setContent(new Label("Content"));
dialog.show(stack);
}
the stackpane was created using the JavaFX Scene builder, it is a child of the rootPane, which is an anchor pane