import java.awt.*; import java.applet.Applet; public class Sample extends Applet{ public void init(){ //ここからプログラムが始まります } } |
import java.awt.*; import java.applet.Applet; public class Sample extends Applet{ public void init(){ } public void paint(Graphics g){ g.drawstring("HelloWorld",10,10); } } |