This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 1064
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: 11404

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
It is sorta covered in the JavaRanch Style Guide.
subject: Using of sample code from sun's tutorials
Similar Threads
Business Tier Technologies mock question?
creating servlet
SWT_AWT Assistance
Patterns mock question?
Common Architectures mock question?