如何在 JDesktopPane 中锁定 Jinternal Frame [英] How to Lock Jinternal Frame inside JDesktopPane

查看:36
本文介绍了如何在 JDesktopPane 中锁定 Jinternal Frame的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 JDesktopPaneJinternal Frame.

我想锁定JDesktopPane内的Jinternal Frame.

建议需要更改哪个方法或属性.

Suggest which method or property needs to change.

推荐答案

你可以

  1. 提供您自己的DesktopManager 并管理setFrameBounds 方法
  2. 实现自己的内部框架 &覆盖 setBounds(x, y, width, height), &通过向 super 调用提供您自己的 x、y 值来保持位置.
  1. Supply your own DesktopManager and manage the setFrameBounds method
  2. 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屋!

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