On 21 juil, 10:16, "Mike M. Lin" <[email protected]> wrote:
> In the Swing homework, the example we key off of (lunar images) is set
> up with a JFrame which holds a JPanel. that JPanel acts as a container
> for two other JPanel's - one to house the combo box, the other to
> house the image.
>
> What is the purpose of the containing JPanel?  I did my homework
> assignment without that container and it seems to work just fine. I
> just put my sub-panels directly on the JFrame.
>
> It seems pretty useless to me in this program. What am I missing?
You may have a look at this tutorial:
http://download.oracle.com/docs/cd/E17409_01/javase/tutorial/uiswing/layout/using.html
Especially the section Tips on choosing a Layout Manager.

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en

Reply via email to