Java Applet Program to Print a Welcome Message

You are currently viewing Java Applet Program to Print a Welcome Message

Java Applet program to print a welcome message

// This java program Welcomes you using Applet.

package Applet;

import java.applet.*;
import java.awt.*;

public class WelcomeToApplet extends Applet
{
	// create paint class to print on the screen.
	public void paint (Graphics g)
	{		
		// Enter message with co-ordinates to make it in centre.
		g.drawString ("Welcome To codingdiksha", 25, 50);
	  
	}
}

Ranjith

Hi, I'm Manoj a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coding Diksha. Here, I post about programming to help developers.

Leave a Reply