• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

How to resize the FlowPane child nodes when Stage/FlowPane gets resized?

Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I added some Tiles from hanSolo/tilesfx into a FlowPane.

However, When I resize the stage, the tiles wont grow at all. They dont change sizes.

The structure is as follows:


The FlowPane itself, gets resized, it goes bigger and smaller as I resize the stage. However, the child nodes inside, wont change at all.
Note that, the FlowPane is inside a GridPane and the row/cols that the FlowPane occupies gets resized normally, exactly as I want to.

I suspect I have to do some kind of binding, but im clueless about how to do it. Ive tried some things but no success at all.

Please help.

Posts: 6127
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One note: it's always a good practice to show where a custom class comes from, like:


I couldn't find anything to bind to, but I did find two interesting properties: autoScale and keepAspect.  You could either use the setters:
or maybe TileBuiler exposes the properties:
That last piece of code is a guess, so check it out first.

If all else fails, email the author.
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!