A basic Gui designing concept
Many of today's applications use a multiple-document interface--a main
window (called the parent window) containing other windows (called child window), to manage several open documents that are being processed in parallel.
What I confuse is the concepts of panel and frame.
Is a parent window a panel or frame?
In other words, does panel contain frame or frame contain panels?
It seems a frame is initialized in many examples.
Thanks
[478 byte] By [
ardmorea] at [2007-11-27 4:59:49]

# 1
Generally, a Frame (or JFrame) will contain other components. Frequently, A Frame will contain one or more Panels, which contain other components.
This is done to make it easier to organize - for example, you could have all your JButtons in a JPanel named "ButtonPanel", and place ButtonPanel in the JFrame. Then you could move your buttons to a different part of the JFrame just by moving the ButtonPanel.
I'm not an expert on this, but I recommend you download Netbeans or another IDE, and make a couple of throwaway GUIs and examine the code the editor makes. Play with the layouts just to see what happens.
BobCa at 2007-7-12 10:16:13 >

# 2
BobC gave you a good advice, and you can complete your knowledge with http://java.sun.com/docs/books/tutorial/uiswing/components/toplevel.html (there is a link to this on the JFrame javadoc page, that you are advisedto read too)