File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Where are Swing classes? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Where are Swing classes?" Watch "Where are Swing classes?" New topic

Where are Swing classes?

arul senthil

Joined: Jul 03, 2001
Posts: 29
Can anyone tell me in which JAR file are the SWING classes packed? I have "tools.jar", "dt.jar" in my JDKhome/lib directory.
Then I have some JARs in JDKhome/jre directory. How to find out in which of these JARs are the SWING classes available?
I am using JDK1.2.2 for Windows.
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121

All the classes are in the < Java dir >/jre/lib/rt.jar file.

However, if you want to look at the source, it is in src.jar, in the Java directory. That is, if you chose the "with sources" option when you got the JDK...


Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Marilyn de Queiroz

Joined: Jul 22, 2000
Posts: 9059
Swing classes are in the javax.swing package.
If you look at the source like Nathan said, you'll see the java.lang package and others including the javax.swing package

"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
I agree. Here's the link:
subject: Where are Swing classes?
It's not a secret anymore!