This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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: 9056
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
Have you checked out Aspose?
subject: Where are Swing classes?
It's not a secret anymore!