如何在 JDesktopPane 中锁定 Jinternal Frame [英] How to Lock Jinternal Frame inside JDesktopPane
本文介绍了如何在 JDesktopPane 中锁定 Jinternal Frame的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用 JDesktopPane
和 Jinternal Frame
.
我想锁定JDesktopPane内的Jinternal Frame
.
建议需要更改哪个方法或属性.
Suggest which method or property needs to change.
推荐答案
你可以
- 提供您自己的
DesktopManager
并管理setFrameBounds
方法 - 实现自己的内部框架 &覆盖
setBounds(x, y, width, height)
, &通过向 super 调用提供您自己的 x、y 值来保持位置.
- Supply your own
DesktopManager
and manage thesetFrameBounds
method - Implement your own internal frame & override the
setBounds(x, y, width, height)
, & maintain the position by supplying your own x, y values to the super call.
这篇关于如何在 JDesktopPane 中锁定 Jinternal Frame的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文