Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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 Android Security Essentials Live Lessons this week in the Android 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: 19656
    
  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: 38107
    
  22
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: 38107
    
  22
You're welcome
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to use swing libraries
 
Similar Threads
Highlight color
I want to design a java class (standalone) which will read Data from HTML page.Is it possible??
swing plugin for ecplise
java
Eclipse Plug-in for Swing application development suggestion