KVMプログラミング Thr.java(1/3) プログラム例 Thr.java import com.sun.kjava.*; import java.io.*; class Thr extends Spotlet { Graphics g=Graphics.getGraphics(); Button b,bb,b2; int t_y=0; public static void main(String[] args){ (new Thr()).register(NO_EVENT_OPTIONS); } void redraw(){ g.clearScreen(); b.paint(); bb.paint(); b2.paint(); } public Thr(){ b=new Button("Foo", 5, 20); bb=new Button("Bar", 40, 20); b2=new Button("Thread", 100, 20); redraw(); } つづく