import java.awt.*;import java.applet.Applet;/* * Very simple applet that illustrates parameters to text-drawing methods. */public class TextXY extends Applet { public void init() { validate(); } public void paint(Graphics g) { Dimension d = size(); g.drawString("My Text at (4, 6)", 4, 6); g.drawString("My Text at (3, 31)", 3, 31); g.drawString("My Text at (3, height)", 3, d.height); }}