______________________________________________________________________________
 Syed Mubeen                      National Centre For Biological Sciences,
 [EMAIL PROTECTED]        TIFR Centre, P.B #1234,
 80-334-5615 or 4062 or 3035      IISc Campus,      
                                  Bangalore - 560 012. INDIA.
_______________________________________________________________________________        
         


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..


Bye.


Syed Mubeen

Reply via email to