How do I add the JDesktopPane
to JFrame
using GridBagLayout
and set its height and width. If I add JDesktopPane
that contains JInternalFrame
I don't get anything. But works well in case of GridLayout
but the problem is I can't set my desired size in it as GridLayout
splits equal space among each component added.