How to maintain GridPane's fixed-size after adding elemnts dynamically
- by Eviatar G.
I need to create board game that can be dynamically change.
Its size can be 5x5, 6x6, 7x7 or 8x8.
I am jusing JavaFX with NetBeans and Scene builder for the GUI.
When the user choose board size greater than 5x5 this is what happens:
This is the template on the scene builder before adding cells dynamically:
To every cell in the GridPane I…