• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NX: javax . swing . SwingUtilities . SwingWorker et al

 
Javini Javono
Ranch Hand
Posts: 286
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

What you must do: Use of Standard Elements: Use of
functionality provided by the core Java classes will
be preferred to your own implementation of that functionality,
unless thre is a specific advantage to providing you own
implementation.



You are permitted to use any IDE tool you choose, but you
must not submit any code that is not your own work. The
final program must have no dependencies on any libraries other
than those of the Java 2 Platform.

Hi,
Given the above assignment specifications, would I be allowed
to use Sun's additional software which Sun itself advertizes
as available within its Java tutorials?
For instance, if I found a use for the
javax.swing.SwingUtilities.SwingWorker class,
would it be illegal to use it and would it
result in automatic failure or a loss of points?
Another instance would be the Swing Spring class (I'm not
sure of its exact name); this is a relatively new Swing
class, and Sun has developed helper methods so that
standard developers, such as us, can use the Spring class
more effectively. Could we also use this class if it
was found of use?
Thanks,
Javini Javono
[ January 07, 2004: Message edited by: Javini Javono ]
 
Bill Robertson
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Javini,
Think about what SUN is saying "Use of functionality provided by
the core java classes will be prefered to your own implementation."

The key word here is core java classes which is a reference to the
API's. So in other words dont try to reinvent the wheel. (ex. Creating
you own ArrayList class)
Is javax.swing.SwingUtilities.SwingWorker and Swing Spring class part of
the core API's? NO!!! They are example's owned by sun and I believe
if you read in the copyright of each of these classes it states that you cannot use the code. However, if you understand how they work, there is
nothing wrong with coming up with your own implementation even if it looks
similar to the SUN examples. But just dont cut and paste!!!
[ January 07, 2004: Message edited by: Bill Robertson ]
[ January 07, 2004: Message edited by: Bill Robertson ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic