Method index:

paint

Source code:

import java.applet.*;
import java.awt.*;
public class FirstApplet extends Applet
     {
     public void paint ( Graphics g)
         {
         g . drawString(" FirstApplet", 25, 50);
         }
     }