The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
April 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

swing package not included

Posted by Siddhant Kumar on May 03, 2001 at 9:10 AM

check that ur swingAll.jar package is included in classpath. this will correct ur problem.

JTextField is a swing component and is light weight, the other is core java AWT components and are called heavy weight components

bye

Siddhant
> an error being found when compile the file.
> How to deal with it?
> BTW, what's difference between the following code:
> 1.
> JTextField text;
> JLabel label;
> 2.
> TextField text;
> Label label;

> Thanks

> j.duan






Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us