• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable to use swing libraries

 
Vinnibabu singu
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20610
63
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you show us the full error message?
 
Vinnibabu singu
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
package java.swing does not exist
import java.swing.*;

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

 
pete stein
Bartender
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 49813
69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Spelling error. It's "javax.swing.XXX"
 
Vinnibabu singu
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you so much.
Actually there was a mistake in the notes i was refering.
thanks for the clarification
 
Campbell Ritchie
Sheriff
Pie
Posts: 49813
69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're welcome
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic