Ozer Irfan wrote:
>
> Hello
> Include jdk1.2 the swing libraries ?
> If no where can I download it ?
>
> I have compilation error :
>
> for example : JFrame not found
>
> I do
>
> import com.sun.java.swing.*;
>
> Thanks
>
> Irfan
>
> ----------------------------------------------------------------------
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
In JDK 1.2 (and I beleive later releases of Swing) the swing packages
are in javax.swing
change import com.sun.java.swing.* to import javax.swing.*
Sun say that since swing is no part of the JDK it shouldn't be in
com.sun and to allow the code from JDK 1.1.x + swing to move to JDK 1.2
(Java2) they didn't put it in java.swing (since its not part of the JDK
for 1.1).
Stuart
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]