U can use Eclipse as IDE it's a good IDE and u can found more than java editor. u can also write the java applet in a bloc note and name the file the same name as the class in(extension .java)
and then compile this file using javac to have the compiled (extension .class)
which u can run using java program
exp:
suppose the name of the first file is myclass.java
u can in command line in the fiolder containing this file write :
javac myclass.java
u will have myclass.class
u can use java to run it if it' defined as application (using main method):
java myclass.class
if ur file is an applet (using paint method) :
u will create a html page that contains the class created by javac using the applet tag as bellow :
<APPLET code="myclass.class" width="500" height="200">
myfirst applet
</APPLET>
here bellow an applet structure:
import java.applet.*;
import java.awt.*;
public class myclass extends Applet
{
public void paint(Graphics g)
{
g.drawString("Hi to all !!!", 30, 30);
}
}
and then compile this file using javac to have the compiled (extension .class)
which u can run using java program
exp:
suppose the name of the first file is myclass.java
u can in command line in the fiolder containing this file write :
javac myclass.java
u will have myclass.class
u can use java to run it if it' defined as application (using main method):
java myclass.class
if ur file is an applet (using paint method) :
u will create a html page that contains the class created by javac using the applet tag as bellow :
<APPLET code="myclass.class" width="500" height="200">
myfirst applet
</APPLET>
here bellow an applet structure:
import java.applet.*;
import java.awt.*;
public class myclass extends Applet
{
public void paint(Graphics g)
{
g.drawString("Hi to all !!!", 30, 30);
}
}