0
Using TilePane prefColumns and tileWidth
How do I prevent Tilepane from resetting the setPrefColumns when the scene is expanded. I want it maintain the preset number of columns.I just want the tilewidth to increase instead and layout its node at its center.
1 Antwort
+ 13
This might help you...
setPrefColumns only affects the TilePane, but not the parent node to which it is added. You need to fix the width of the parent node as well.
https://stackoverflow.com/questions/34428900/javafx-tilepane-setprefcolumn-row-methods-not-working