• 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 ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

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

 
Greenhorn
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:

Vbox
--SplitPane
----ScrollPane
------GridPane
---------FlowPane(0,1)

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.




 
Sheriff
Posts: 6127
157
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:

https://github.com/HanSolo/tilesfx

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!