> interface com.sun.java.swing.*;
I think you mean "import" ???
Syed Mubin wrote:
>
> ______________________________________________________________________________
> Syed Mubeen National Centre For Biological Sciences,
> [EMAIL PROTECTED] TIFR Centre, P.B #1234,
> 80-334-5615 or 4062 or 3035 IISc Campus,
> Resi :3452848 Bangalore - 560 012. INDIA.
> _______________________________________________________________________________
>
> Hi,
>
> I'm trying to install Netbeans nbdv20b3.sh on JDK1.1.6 but
> not sucessful.I also have installed SWING1.0.3 the SwingSet example is
> working fine but when i wrote a simple program it shows the following
> errors.
>
> -----------------------------------------------------------------------------
> CLASSPATH SET
>
> # .bashrc
> #CONTENTS
>
> # User specific aliases and functions
>
> # Source global definitions
> if [ -f /etc/bashrc ]; then
> . /etc/bashrc
> fi
>
> /usr/games/fortune
>
> JAVA_HOME="/home/syed/JDK1.6/jdk1.1.6"
> export JAVA_HOME
> export DISPLAY=:0
> PATH="/home/syed/JDK1.6/jdk1.1.6/bin:$PATH"
> SWING_HOME="/home/syed/SWING13/swing-1.0.3"
> export SWING_HOME
>
> -----------------------------------------------------------------------------
>
> import java.awt.*;
> import java.awt.event.*;
> interface com.sun.java.swing.*;
> import java.applet.*;
>
> public class SimpleSwing extends JApplet
> {
> JRadioButton metalButton;
> 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: '{' expected.
> interface com.sun.java.swing.*;
> ^
> SimpleSwing.java:7: Superclass JApplet of nested class com. SimpleSwing
> not found.
> public class SimpleSwing extends JApplet
> ^
> 2 errors
> ----------------------------------------------------------------------------
>
> Is it compulsory to have swing installed for working netbeans?
>
> Please help
>
> Syed Mubeen
>
>
begin:vcard
n:Sider;Jeff
x-mozilla-html:FALSE
org:SIDC Software Development Inc.
adr:;;;Hamilton;Ontario;;Canada
version:2.1
email;internet:[EMAIL PROTECTED]
title:Senior Consultant
x-mozilla-cpt:;0
fn:Jeff Sider
end:vcard