Develop an applet that displays a simple message. - C C++ Java Programs - Examples

Latest

C C++ Java Python Perl Programs Examples with Output -useful for Schools & College Students

Monday, October 10, 2011

Develop an applet that displays a simple message.


Develop 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("BANDARI SRINIVAS INSTITUTE OF TECHNOLOGY ",70,70);
}
}

No comments:

Post a Comment