flowpane

TilePane with automatically stretching tiles in JavaFX

左心房为你撑大大i 提交于 2019-12-01 19:35:51
问题 Is there any way in JavaFX to take best from both TilePane or FlowPane and GridPane? Here's what I'd like to achieve: First, I like the idea of GridPane where I can set up a M×N grid which automatically resizes within its parent container to divide the space equally into M columns and N rows. Then I can put some child elements which fill each cell completely, and they will stretch along with the grid. This is cool. But there's one drawback: I need to explicitly specify where should each