I read this 开发者_StackOverflowtut http://www.iam.ubc.ca/guides/javatut99/uiswing/start/swingStart11.html
but I can't find swing.jar in my jdk1.6.0 folder ?
No swing.jar
- the swing classes are in rt.jar
(of the jre). It's a massive jar containing everything.
Sun (now Oracle) are trying to break that massive jar into modules, but it is not easy. See this article. Project jigsaw is aimed at modularizing the JRE. But for now - it's all in rt.jar
The javax.swing
package is included in rt.jar
.
This is a very, very old page discussing Java 1.1 which didn't include Swing.
These days Swing is part of the standard Java runtime library available out of the box.
精彩评论