How to print Text in Java Applet?

Hello Friends, 

Today I will explain how can we print “HELLO” or Any text in Java Applet.
In this  program I have print only “HELLO” but you can choose any text you like.

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


public class first extends Applet
public void paint(Graphics g)
g.drawString("first applet..........",100,200);

Leave a Reply