Site icon WebArtDeveloper

How to Create an Applet in Core Java

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);
}
}

https://youtu.be/iA5QqeKdXp8

Exit mobile version