return paneInfo.getPane();
}
@Test
public void multiplePanes() {
final Pane pane = new FlowPane();
pane.setPrefSize(100, 100);
final Button btnRunTask = new Button("Run Task");
JuFxUtils.startApplication()
.title("TaskExecutor")
.pane(pane)
.start(new ApplicationInitializer() {
@Override
public void init(final Stage primaryStage) {
btnRunTask.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent ev) {
Pane pane = createExecutorPane(Long.toString(System.currentTimeMillis()));
Stage dialog = new Stage();
dialog.initOwner(primaryStage);
//dialog.initModality(Modality.);
Scene scene = new Scene(pane);
dialog.setScene(scene);
dialog.show();
}
});
pane.getChildren().add(btnRunTask);
}
});
}