0

I had an application in Java have a jdesktop pane with 3 normal panels. The problem occurs when I resize the MDI window - the three panels don't match with the MDI window. How can I fix this knowing that I'm using netbeans IDE?

TechWisdom
  • 3,960
  • 4
  • 33
  • 40
Azza
  • 41
  • 6

1 Answers1

1

a jdesktop pane with 3 normal panels.

A JDesktopPane is not designed to be used with "normal panels".

Instead you add a JInternalFrame to the desktop pane. When the internal frames are maximized they will match the desktop pane size.

Read the section from the Swing tutorial on How to Use Desktop Panes for more information and working examples.

camickr
  • 321,443
  • 19
  • 166
  • 288