File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes using JBuilder6 XYlayout for SCJD? 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 "using JBuilder6 XYlayout for SCJD? " Watch "using JBuilder6 XYlayout for SCJD? " New topic

using JBuilder6 XYlayout for SCJD?

Jim Martin
Ranch Hand

Joined: Oct 31, 2002
Posts: 80
Hi all
To those that have passed the SCJD exam:
Did anyone use the JBuilder6 XYlayout and notlose points on it?
Is it a must to use a standard layout like GridBagLayout?
I am done with the exam, but I used the XYlayout. It works fine under the production version of Sun's Java 2 Platform. I just want to check if I should redo the GUI using a standard layout or leave it as it is?
Thank you very much in advance
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

You will lose points if there is any classes not from the SDK. You cannot allow IDE's to put proprietary classes or code in your submission.
It is possible that they would even fail you on that point. It is clearly written in the assignment instructions.
I hightly suggest not using an IDE to do your assignment. While it can ease your development, you end up losing some valuable learning experiences.

Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
Mag Hoehme
Ranch Hand

Joined: Apr 07, 2002
Posts: 194
Hi Ahoo,
I used an IDE (NetBeans) for my assingment. However I did not use the GUI Builder, but coded everything by hand. If you are using an IDE, be careful with automatically generated code. My suggestion is to avoid any code generation because it relies on non-JDK classes. And in addition, coding by hand usually makes your code simpler and clearer.
[ November 02, 2002: Message edited by: Mag Hoehme ]

Jim Martin
Ranch Hand

Joined: Oct 31, 2002
Posts: 80
Thank you very much for your responses. I have changed my layout to GridBagLayout. I think that should be ok, right?
Mag Hoehme
Ranch Hand

Joined: Apr 07, 2002
Posts: 194
Hi Ahoo,
I think any layout is ok, provided the result is acceptable. I stowed everything in a BorderLayout(I got marked the maximum 24 points for my GUI - so I guess it was fine).
Thomas Fly
Ranch Hand

Joined: Sep 09, 2002
Posts: 164
If you look at the top of the source of any class that uses XYLayout, you'll see:
import com.borland.jbcl.layout.*;
That's called "a residual dependency" upon your IDE, and it'll cause you to lose something in the neighborhood of 155 points.
Use XYLayout for the initial layout design of your app or dialog, but convert to SDK layout managers after you have it designed.
You can convert to a null layout for that matter, but evidently you forfeit portability in doing so, hence Sun recommends against it (I've seen where someone passed with a fairly high score without using a layout manager, however).
See the excellent tutorials (e.g., GridBagLayout) in JBuilder help.

Fly by Night Consultants<br /> <blockquote><font size="1" face="Verdana, Arial">quote:</font><hr><i>I climbed on the back of a giant albatross<br />which flew through a crack in the cloud<br />to a place where happiness reigned...<br />all year 'round<br />the music played ever so loudly!</i><p><a href="" target="_blank" rel="nofollow">Hole in My Shoe</a><hr></blockquote>
I agree. Here's the link:
subject: using JBuilder6 XYlayout for SCJD?
It's not a secret anymore!