Google Search

Monday, October 10, 2011

write a java program for an applet that displays a simple message


//program for an applet that displays a simple message
//<applet code="AppletDemo.class" height="300" width="300" > </applet>
import java.applet.*;
import java.awt.*;
public class AppletDemo extends Applet
{
public void paint(Graphics g)
{
g.setColor(Color.red);
g.drawString("JNTU WORLD",70,70);
}
}

0 comments:

Post a Comment