Syed Mubin wrote:
> ___________________________________________________________________________
> ___
> Syed Mubeen Tata Institute of Fundamental Research,
> [EMAIL PROTECTED] P.B #1234,
> 80-334-5615 or 4062 or 3035 IISc Campus,
> Resi :3452848 Bangalore - 560 012. INDIA.
> ___________________________________________________________________________
> ____
>
> Hi Everybody,
>
> I have installed Swing1.03 on linux5.1 and tried all the demo
> examples working fine,but when i tried to compile the following
> program.
>
> 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();
> }
> }
>
> ERRORS SHOWN
> SimpleSwing.java:3: Package com.sun.java.swing not found in import.
> import com.sun.java.swing.*;
> ^
> 1 error
>
> Anybody tell me what the error is.
Have you added the full pathname for "swingall.jar" to your CLASSPATH?
Cynthia Jeness