是否可以在javafx 2中禁用窗口的最小化按钮? [英] Is it possible to disable the minimize button of a window in javafx 2?

查看:248
本文介绍了是否可以在javafx 2中禁用窗口的最小化按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用javafx做一个项目.我已经通过使用setResizable(false)禁用了可调整大小的属性.现在我也需要禁用最小化按钮.我该怎么办?

I am doing a project in javafx. I already disabled the resizable property by using setResizable(false). Now I need to disable the minimize button too. How can I do it ?

推荐答案

Initialize the style of the stage to UTILITY, then the stage won't have an enabled minimize button.

stage.initStyle(StageStyle.UTILITY);

这篇关于是否可以在javafx 2中禁用窗口的最小化按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆