Hi,
I just downloaded SunOne from the Sun website. I also downloaded
Java SDK.
I want to write the following simple swing application-
<
applet code=Applet1 width=50 height=50></applet>
import javax.swing.*;
import java.awt.*;
public class Applet1 extends Applet
{
public void init()
{
getContentPane().add new jLabel("applet"));
}
}
1. Can someone please give me step by step instructions on how to load the
necessary class files for compiling the above code?
2.Right now when I compile it, I get the error-
'cannot recognise jLabel'.
3. I have the following directories under c:/j2sdk/
bin, demo, java, jre, lib, src, com, include, javax, launcher, org, sunw
4. I have been mounting c:/j2sdk through the file system for the above
mentioned project.
But looks like something is wrong. Can someone please..please give me instructions on what to do. I have been trying this since 2 days now.
Amrita