home *** CD-ROM | disk | FTP | other *** search
- import java.applet.Applet;
- import java.awt.Component;
- import java.awt.Font;
- import java.awt.Graphics;
-
- public class ConfigApplet extends Applet {
- String str;
-
- public void init() {
- this.str = ((Applet)this).getParameter("text");
- Font var1 = new Font("TimesRoman", 1, 24);
- ((Component)this).setFont(var1);
- }
-
- public void paint(Graphics var1) {
- var1.drawString(this.str, 50, 50);
- }
- }
-