aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Unable to use swing libraries Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Unable to use swing libraries" Watch "Unable to use swing libraries" New topic
Author

Unable to use swing libraries

Vinnibabu singu
Ranch Hand

Joined: Aug 19, 2009
Posts: 30
I installed jdk 1.6 in my system.
I am able to practice all the other concepts.
When i tried to compile a swing program it gave an error specifying that
Couldnt find the class and package
Do we need to install any additional software or to set any classpath in order to do a swing programme?
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19672
    
  18

Can you show us the full error message?


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Vinnibabu singu
Ranch Hand

Joined: Aug 19, 2009
Posts: 30
package java.swing does not exist
import java.swing.*;

package java.swing.border does not exist
import java.swing.border.*;

pete stein
Bartender

Joined: Feb 23, 2007
Posts: 1561
Vinnibabu singu wrote:package java.swing does not exist
import java.swing.*;
package java.swing.border does not exist
import java.swing.border.*;

That's because it is

don't forget the "x"
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38412
    
  23
Spelling error. It's "javax.swing.XXX"
Vinnibabu singu
Ranch Hand

Joined: Aug 19, 2009
Posts: 30
thank you so much.
Actually there was a mistake in the notes i was refering.
thanks for the clarification
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38412
    
  23
You're welcome
 
Don't get me started about those stupid light bulbs.
 
subject: Unable to use swing libraries