In this tutorial how to create an Applet in Core Java is shown.
Code:
AppletDemo1.java
/*<applet code=”AppletDemo1″ width=”500″ height=”500″> </applet> */
import java.applet.Applet;
import java.awt.Graphics;
public class AppletDemo1 extends Applet
{
public void paint(Graphics g)
{
g.drawString(“Welcome”,200,200);
}
}