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.

21st Oct 2017, 12:46 PM
Ridwan
Ridwan - avatar
1 Answer
+ 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
5th Nov 2017, 9:12 PM
Tashi N
Tashi N - avatar