This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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
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
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 ]
Joined: Oct 31, 2002
Thank you very much for your responses. I have changed my layout to GridBagLayout. I think that should be ok, right?
Joined: Apr 07, 2002
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).
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="http://thomasfly.com/songs/Traffic/Hole_in_my_Shoe_qt.htm" target="_blank" rel="nofollow">Hole in My Shoe</a><hr></blockquote>
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com