Como centralizar um nó em um painel javafx
Como crio um painel e tenho um filhoNode
colocar no centro?
Vamos dizer oPane
é500
por500
e aNode
é umImageView
com um200
por200
Image
ImageView view = new ImageView();
Image img = new Image("test.png");
view.setImage(img);
Pane pane = new Pane();
pane.setMinWidth(500);
pane.setMinHeight(500);
pane.getChildren().add(view);