How to Lock Jinternal Frame inside JDesktopPane
-
21-06-2021 - |
Question
I am using JDesktopPane
and Jinternal Frame
.
I want to Lock Jinternal Frame inside JDesktopPane
.
Suggest which method or property needs to change.
Solution
You could
- 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.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow