JavaFx GridPane - how to center elements
oh, that was easy. i did the alignment on the wrong place. adding this will do the job:
tmp[currArrPos].setAlignment(Pos.CENTER);
thanks anyway.
- You can use this
GridPane.setHalignment(tmp[currArrPos], HPos.CENTER);
Using GridPane to layout controls