Using java create Applets
import java.applet.*;
import java.awt.*;
import java.io.*;
/**
*
* @author
Student
*/
public class JavaApplication20 extends Applet
{
public void paint(Graphics g)
{
g.drawRect(200, 100, 400, 200);
g.fillRect(200, 100, 400, 200);
Font f=new
Font("arial",Font.BOLD|Font.ITALIC,18);
g.setFont(f);
g.setColor(Color.white);
g.drawString("WELCOME TO THE WORLD OF JAVA!!!", 250, 200);
}
Output