Write a program to display a message in window using Applet class.
package Applet;
import java.applet.*;
import java.awt.*;
public class myApplet extends Applet
{
public void paint (Graphics g)
{
g.drawString ("Hello World", 25, 50);
}
}
Comments
Leave a comment