Author
Unable to use swing libraries
Vinnibabu singu
Ranch Hand
Joined: Aug 19, 2009
Posts: 30
posted Sep 17, 2009 09:07:46
0
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: 19216
Can you show us the full error message?
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
Vinnibabu singu
Ranch Hand
Joined: Aug 19, 2009
Posts: 30
posted Sep 17, 2009 09:37:34
0
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: 32599
Spelling error. It's "javax .swing.XXX"
Vinnibabu singu
Ranch Hand
Joined: Aug 19, 2009
Posts: 30
posted Sep 18, 2009 05:40:38
0
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: 32599
You're welcome
subject: Unable to use swing libraries