File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using of sample code from sun's tutorials

 
Norbert Hasselberg
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1066
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 11833
181
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic