Stage/Scene/Window resize event
twasylJun 4 2012 — edited Jun 5 2012Hi 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.