On Fri, 11 Sep 1998, Syed Mubin wrote:
>
> Hi Everybody there,
>
>
> At present iam running JDK 1.1.5 on Red hat Linux 5.1 which works
> fine ,recently i downloaded Swing but iam unable to install its giving
>
> when i tried to run such a simple program given below
> ------------------------------------------------------------------
> import java.awt.*;
> import java.awt.event.*;
> import com.sun.java.swing.*;
> import java.applet.*;
>
>
> public class SimpleSwing extends Applet{
>
> JRadioButton metalButton, motifButton, windowsButton;
> JButton button;
>
> public void init()
> {
> JButton button = new JButton("Hello, world");
> JRadioButton metalButton = new JRadioButton(metal);
> add(button);
> add(metalButton);
> validate();
> button.show();
> metalButton.show();
> }
> }
>
> Its showing following errors
> -----------------------------
>
> SimpleSwing.java:3: Package com.sun.java.swing not found in import.
> import com.sun.java.swing.*;
> ^
> 1 error
>
>
> Anybody please help me where is the error,also tell me in step by
> installing of Swing..
Make sure you have the "swingall.jar" file in your CLASSPATH. It
should be located in the directory where you put swing
(.../swing-1.0.3/swingall.jar).
Sean
=== Friends don't let friends use DOS... ===
Sean Starkey [EMAIL PROTECTED] WWW: http://rmi.net/~starkey ICQ: 4863014
Check out Universe! - http://rmi.net/~starkey/Universe