aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Swing components Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Swing components" Watch "Swing components" New topic
Author

Swing components

Surya Kumar
Ranch Hand

Joined: Aug 21, 2004
Posts: 52
In my instruction it says that GUI must be composed exclusively with components from the Java Foundation Classes (Swing components). But i am using the layouts which are from awt. Where ever i am using the getContentPane() i am using a awt component. So my doubt is when it was told that "composed exclusively with " that means only visual components has to be from JFC, and in coding we can use awt components still!! Regards


Regards<br />Prem<br />SCJP, SCJD, SCWCD, SCBCD, SCEA, SCJDWS
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17257
    
    6

LayoutManagers are fine. They are used as part of Swing too, so what they really mean is using JButton from Swing rather than the AWT counterpart.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
peter wooster
Ranch Hand

Joined: Jun 13, 2004
Posts: 1033
Originally posted by Surya Kumar:
In my instruction it says that GUI must be composed exclusively with components from the Java Foundation Classes (Swing components). But i am using the layouts which are from awt. Where ever i am using the getContentPane() i am using a awt component. So my doubt is when it was told that "composed exclusively with " that means only visual components has to be from JFC, and in coding we can use awt components still!! Regards


AWT may be used along with Swing. It would be impossible to use Swing without AWT as Swing classes almost always extend AWT classes. What you can't use is other widget systems such as SWT or the various Borland extensions. Also you shouldn't use AWT where there is a Swing alternative, so use JFrame, not Frame etc.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Swing components