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!

How to set a minimum width and height for a stage or scene?

ytwApr 21 2012 — edited Apr 23 2012
Hello,

Does anyone how to set a minimum width and height for a stage or scene?
I tried listening for width/height property value changes and then adjust the width/height if necessary, but that causes unpleasant flickering of the window.

In JavaFX 2.1 beta SDK for Mac OS, the Stage class has setMinWidth() and setMinHeight() functions which work very well.
I'm wondering what's the equivalent way to do that when using the FX SDK for Windows.

Any help is appreciated!
Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 21 2012
Added on Apr 21 2012
4 comments
1,502 views