In JavaFX 1.x, where I’ve used the FX-Script to setup the Scene, I had the bind keyword:
Dynamic/instant resize in JavaFX
How can I have the same behavior in 2.0?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you want automatic resize, you should do something like this
I have tried only with BorderPane and it works. Also if you want to create custom
component, your class should extend one of layouts. Automatic resize won’t work if your component extends Pane or Group
I think this will help to you.
Best regards
Sandro