带最小化按钮的 JDialog

发布于 2024-08-14 03:49:12 字数 110 浏览 3 评论 0原文

是否可以为非模态(modal = false)JDialog提供最小化和最大化按钮。我知道JFrame是理想的解决方案,但这种更改必须在现有代码中进行,并且从JDialog更改起来并不困难到 JFrame。

Is it possible to have a minimize and maximize button for a non-modal(modal=false) JDialog.I know JFrame is the ideal solution for this but this change has to be made in an existing code and its little difficult to change from JDialog to JFrame.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

〗斷ホ乔殘χμё〖 2024-08-21 03:49:12

不可以,JDialog 不能用最小化按钮(模态或非模态)装饰。

No, JDialog cannot be decorated with a minimize button (modal or not).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文