Home » Sometech » Develop an applet that displays a simple Message.

Develop an applet that displays a simple Message.

Java Coding

import java.awt.*;

import java.awt.event.*;

import java.applet.*;

public class myevent111 extends Applet

{

public void paint (Graphics g)

{

setBackground( Color.red );

g.drawString(“What is your name?”, 90, 70);

g.drawString(“My name is Pankaj Dhir”, 90, 90);

}

}

/*<applet code=”myevent111″ width =1000 height =1000></applet>*/

Advertisements

SoME Tech

Error: Twitter did not respond. Please wait a few minutes and refresh this page.

%d bloggers like this: