//B2. NEP Java Program which create and displays a message on the window.
/*
<applet code="ProgB22" width=300 height=200>
</applet>
*/
import java.applet.Applet;
import java.awt.Graphics;
import java.awt.*;
public class ProgB22 extends Applet
{
public void init()
{
setForeground(Color.blue);
}
public void paint(Graphics g)
{
g.drawString("This is an Applet Window!", 100, 90);
}
}
No comments :
Post a Comment