Take the 2-minute tour ×

I am using JDesktopPane and Jinternal Frame.

I want to Lock Jinternal Frame inside JDesktopPane .

Suggest which method or property needs to change.

share|improve this question
How do mean "lock", unmovable? Unresuzabe? –  MadProgrammer Jul 19 '12 at 8:46
@MadProgrammer: Unmovable –  niraj deshmukh Jul 19 '12 at 8:52
add comment

1 Answer

up vote 3 down vote accepted

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.
share|improve this answer
add comment

Your Answer


