hi friends ,
myself dilip,currently learning java. During practicals of java i got
confused because sir sometime use JFrame or sometimes Jpanel in Swing /
AWT .
What is basic difference between them.Please clarify when to use/not
use either of JFrame /Jpanel.
Dilip Kumar
http://www.intelcs.com/IT-Companies/
RedGrittyBrick - 31 Aug 2007 10:00 GMT
> hi friends ,
> myself dilip,currently learning java. During practicals of java i got
> confused because sir sometime use JFrame or sometimes Jpanel in Swing /
> AWT .
> What is basic difference between them.Please clarify when to use/not
> use either of JFrame /Jpanel.
http://mindprod.com/jgloss/jframe.html
http://mindprod.com/jgloss/jpanel.html
Daniel Pitts - 31 Aug 2007 17:20 GMT
> hi friends ,
> myself dilip,currently learning java. During practicals of java i got
[quoted text clipped - 3 lines]
> use either of JFrame /Jpanel.
> Dilip Kumarhttp://www.intelcs.com/IT-Companies/
JFrame represents an actual Window (Frame) on the desktop.
JPanel represents a container within some other Window, such as a
JFrame or JDialog.
AWT doesn't have JFrame or JPanel, they are specific to Swing. AWT
does have its own equivalent classes, but I would steer clear of them.
Swing is a lot easy to create useful applications in.