Write a program using Applet to display a message in the Applet.

Program Code:
import java.applet.*;
import java.awt.Graphics;
/* <applet code="Appletdemo.class" width=300 height=300> </applet> */
public class Appletdemo extends Applet
{
public void paint(Graphics g)
{
String msg="HELLO!, Welcome to my applet ";
g.drawString(msg,80,150);
}
}
Mukesh Rajput

Mukesh Rajput

I am a Computer Engineer, a small amount of the programming tips as it’s my hobby, I love to travel and meet people so little about travel, a fashion lover and love to eat food, I am investing a good time to keep the body fit so little about fitness also..

Post A Comment:

1 comments: