How to make javafx.scene.Scene resize while maintaining an aspect ratio?

后端 未结 2 1105
说谎
说谎 2021-01-06 03:06

I\'m writing an application with JavaFX 2.2.7-b01.

Here is an example of the code I currently have. How can I allow the application window to be resized but maintain

2条回答
  •  情歌与酒
    2021-01-06 03:38

    In netbeans using Java Fx Scene Builder provide you can use AnchorPane Constraints to set Resizing of stage.

提交回复
热议问题