How to Lock Jinternal Frame inside JDesktopPane

╄→гoц情女王★ 提交于 2019-12-12 00:28:51

问题


I am using JDesktopPane and Jinternal Frame.

I want to Lock Jinternal Frame inside JDesktopPane .

Suggest which method or property needs to change.


回答1:


You could

  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.


来源:https://stackoverflow.com/questions/11556044/how-to-lock-jinternal-frame-inside-jdesktoppane

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!