Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Stage/Scene/Window resize event

twasylJun 4 2012 — edited Jun 5 2012
Hi everybody,

I'm developing an application in JavaFX and I'm wondering what is the best way to respond to resize event of a JavaFX application. Indeed my application has to adapt the UI when both width and height change.
The Stage and the Scene both have a heightProperty and widthProperty but not a kind of sizeProperty. What is the best way to do that? Bind both height and width? How can I be sure that when I compute the width's change, the height has also been modified?

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 3 2012
Added on Jun 4 2012
3 comments
5,318 views