• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

using JBuilder6 XYlayout for SCJD?

 
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
ranger
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).
 
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
I guess everyone has an angle. Fine, what do you want? Just know that you cannot have this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic