
import java.awt.*;

/**
 * Ein Applet mit einem von JavaScript gesteuerten Textfeld
 * @author  Mark Donnermeyer
 */
public class AppletGetParam extends java.applet.Applet {
    
    private String text = "";
    
    public void init() {
        text = "Bitte einen Text angeben";
        repaint();
    }
    
    public void setText(String text) {
        this.text = text;
        repaint();
    }
    
    public void resetText() {
        text = "";
        repaint();
    }
    
    public void paint(Graphics g)
    {
        g.setFont(new Font(g.getFont().getName(), Font.PLAIN, 60));
        g.drawString(text, 10, 80);
    }
}
