• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

using JBuilder6 XYlayout for SCJD?

 
Jim Martin
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Regards
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Mark
 
Mag Hoehme
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 164
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic