import java.applet.*; |
import java.awt.Graphics; |
public class Hello extends Applet { |
String str = "Hello, World"; |
int x = 25; |
int y = 25; |
public void paint ( Graphics g){ |
g.drawString ( str, x, y ); |
} |
public void setString ( String newstr ){ |
str = newstr; |
repaint(); |
} |
public String getString() { |
return str; |
} |