This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 9044
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?
Similar Threads
ejb depend on third-party library and Class-Path entry!!!
netbeans cannot load jvm.dll
Tomcat and Oracle, will i transfer any file?
Problems while Loading Applet...