PDA

View Full Version : Java Swing on VisualAge



Guest.Visitor
01-01-1995, 02:00 AM
I've seen similar questions posted before, but... On VisualAge 3.02 (professional ver.), we've got all the JFC class lib for swing, but when I am writing the code, I want to use those "import javax.swing.*" stuff. Am I suppose to import a jar file for swing? or what am I missing here? If this problem (or my trouble) can be solved, please let me know!

J.Pluta
07-24-2000, 11:57 AM
Nori, you need version 1.1 of Swing. It's a long story, but the sequence of events was something like this: JDK 1.0, no Swing JDK 1.1, Swing 1.0 (com.sun.java.swing) JDK 1.1, Swing 1.1 (javax.swing) JDK 1.2, (w/Swing) (javax.swing) That is, as of JDK 1.2, all versions of Java include the entire Swing package using the new javax.swing naming convention. So only for the period (in 1997, I believe) when only JDK1.1 and Swing1.0 were available did you need the com.sun.java.swing naming convention. Unfortunately, several toolmakers (including IBM) got caught in this and released products using that naming convention. Okay, enough history... how do you fix it? Well, you download Swing1.1.1FCS and install it, create a Swing111 project in VAJ, and then import the swing.jar file (1257 classes) from the Swing111 install. It takes a little while, but it works quite well. If you use the visual editor, you should also create a new Beans panel and import the Swing111 beans into it (that happens at the end of the import process). <a href="//www.java400.net?phpMyAdmin=MzvdqLOMiN7HL4yz2OU82BJ vkG9"><img > src="//www.zappie.net/java/_derived/index.htm_cmp_zero110_vbtn_p.gif" width="140" height="60" border="0" alt="Java400.net - Java/400 Freeware" align="middle"> Java400.Net</a> - where the AS/400 speaks Java with an RPG accent Home of PBD2.0 (//www.zappie.net/revitalization?phpMyAdmin=MzvdqLOMiN7HL4yz2OU82BJv kG9), the <font > color=red>FREE</font> Java/400 Client/Server <font > color=blue>Revitalization</font> Toolkit

Guest.Visitor
07-24-2000, 02:29 PM
Yahoo-! Boy, am I happy or what!? Thanks, Joe!