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 of sample code from sun's  tutorials 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 of sample code from sun Watch "Using of sample code from sun New topic

Using of sample code from sun's tutorials

Norbert Hasselberg

Joined: Feb 26, 2004
Posts: 9
I am using the spring layout and use for that the SpringUtillities class from the sun's tutorial. Its a small helper class. Is this allowed ??
Vishwa Kumba
Ranch Hand

Joined: Aug 27, 2003
Posts: 1066
I do not know the answer for ur Q, but hope to get an answer from the others.

Initially, I thought of using SpringUtilities.makeCompactGrid() in my code with the SUN's code copyright comments at the top. The SpringLayout manager laid out the search widgets correctly for my GUI.

But I couldn't fully understand the code inside this SUN's method, so I have now changed my UI design to use GridBagLayout instead.I didn't want to submit any code that I didn't understand.
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11777

Hi Norbert,

Do you have the line "you must not submit any code that is not your own work" in your instructions?

If so, then you cannot provide one of Sun's classes.

Regards, Andrew

The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
I agree. Here's the link:
subject: Using of sample code from sun's tutorials
It's not a secret anymore!