The perfect place for easy learning...

Java Programming Language

×

List of Programs


Java Practical Programs


Aim


Develop an applet in Java that displays a simple message.

Implementation


Java Program
import java.awt.*; 
import java.applet.*;

/* <applet code="Applet1" width=200 height=300></applet>*/

public class AppletExample extends Applet
{

	public void paint(Graphics g)
	{
		g.drawString("Hello World!",20,20);
	}
	
}

Result



   Download Source Code

Place your ad here
Place your ad here