Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / August 2007

Tip: Looking for answers? Try searching our database.

when to use/not use  JFrame or Jpanel in Swing or AWT?

Thread view: 
dilip - 31 Aug 2007 09:23 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.
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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.