Swing dilemma

From: Joseph (na_at_na.ca)
Date: 03/30/04


Date: Mon, 29 Mar 2004 23:40:05 GMT

Can anyone explain to me the benefit of using a JPanel and adding it to a
JFrame ; where all the components(buttons,etc.) are added to JPanel.
Compared to skipping the JPanel and just adding the components to a JFrame.
I find that the book I am reading seems to use JPanels quite a bit but
doesn't state why. Thank you in advance.


Quantcast