0

Say I have a javafx application and I want to display e.g. a list with 15 images in this application. The images should always have the same size so if the user resizes the application, if there is not enough space to show e.g. 3 images next to each other, only 2 should be shown and the others move into a new "row".

Is there any container which applies such a behavior or do I have to implement it on my own? If so - any general tips?

cranckstorm
  • 301
  • 1
  • 12

1 Answers1

2

Sounds like a FlowPane would suit you just fine. See this tutorial, or the documentation. You can also consider the TilePane described right after the FlowPane, if all images are the same size.

Itai
  • 6,641
  • 6
  • 27
  • 51