when working with NetBeans, what is the purpose of adding a DesktopPane and then adding the InternalFrame rather than adding the InternalFrame at once?
Printable View
when working with NetBeans, what is the purpose of adding a DesktopPane and then adding the InternalFrame rather than adding the InternalFrame at once?
Nothing to do with NetBeans. Read the API for JDesktopPane and JInternalFrame and follow the link to the Swing tutorials on How to Use Internal Frames.
Your question is a classic example of using the NetBeans (or any other) visual designer without first learning how to correctly use Swing components and / or layouts. I strongly recommend you put aside the designer and learn first to hand-code your GUIs. Go back to the designer when you're capable of understanding the code it spews out.
db