javac hello.java
appletviewer hello.java
import java.applet.*; import java.awt.*; import java.awt.event.*; import java.util.*; /* <applet code="hello.class" width="400" height="400"></applet> */ public class hello extends blike { public void run() { grp.setColor(new Color(0xffffff)); grp.fillRect(0, 0, dim.width, dim.height); grp.setColor(new Color(0x000000)); grp.drawString("こんにちは", 60, 110); repaint(); } }