aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes a question about the restriction to the assignment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "a question about the restriction to the assignment" Watch "a question about the restriction to the assignment" New topic
Author

a question about the restriction to the assignment

Ben Zung
Ranch Hand

Joined: Mar 25, 2004
Posts: 109
It says: "It must be composed exclusively with compoments from the JFC(Swing)". What about the non-component? What I means is if I want to set the layout for a JPanel. the one I want to use, BorderLayout is in awt package, is it ok to use it?
Thanks.
Bing
George Marinkovich
Ranch Hand

Joined: Apr 15, 2003
Posts: 619
Hi Bing,
Welcome to this forum.
Originally posted by Bing Yuen:
It says: "It must be composed exclusively with compoments from the JFC(Swing)". What about the non-component? What I means is if I want to set the layout for a JPanel. the one I want to use, BorderLayout is in awt package, is it ok to use it?

BorderLayout is fine. If there's a JComponent available then you should use it rather than a Component. For example, use JFrame instead of Frame, use JLabel instead of Label, etc. There's a good number of classes that we need to use from the old AWT because Swing does not provide an alternative. Where there's no alternative to AWT you can use AWT, where there's a Swing alternative you should use the Swing component.
[ March 25, 2004: Message edited by: George Marinkovich ]

Regards, George
SCJP, SCJD, SCWCD, SCBCD
Ben Zung
Ranch Hand

Joined: Mar 25, 2004
Posts: 109
George:
Thanks for the "welcome" and your explanation. It is very good and helpful to know that.
Again, thank you.
Bing
Denis Spirin
Ranch Hand

Joined: Mar 22, 2004
Posts: 72
Hmm... I have same question. It is said:
it must be composed exclusively with components from the JFC(Swing)

You say:
Where there's no alternative to AWT you can use AWT, where there's a Swing alternative you should use the Swing component.

In fact, there is some alternative to AWT layouts, such as BoxLayout, SpringLayout, etc.
Does Sun mean "components" or "Components" (which extend JComponent)?
In my assignment I use GridLayout and GridBagLayout. Is it ok?


Regards<br /> <br />Ph.D.<br />SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJD 2
Satish Avadhanam
Ranch Hand

Joined: Aug 12, 2003
Posts: 697
Hi Denis
Originally posted by Denis Spirin:
In my assignment I use GridLayout and GridBagLayout. Is it ok?

I think its OK to use them. I remember Ken used GridBagLayout and he got great score.
Denis Spirin
Ranch Hand

Joined: Mar 22, 2004
Posts: 72
Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: a question about the restriction to the assignment
 
Similar Threads
where jess can be used for?
Indirection
Java Remote connection
some java interview Questions
About Final keyword