KVMプログラミング Db.java(1/5) プログラム例 Db.java import com.sun.kjava.*; import java.io.*; class Db extends Spotlet { Graphics g=Graphics.getGraphics(); Button b,bb; ScrollTextBox t; String theText=""; public static void main(String[] args){ (new Db()).register(NO_EVENT_OPTIONS); } void redraw(){ g.clearScreen(); b.paint(); bb.paint(); } public Db(){ b=new Button("Read", 5, 20); bb=new Button("clear", 60, 20); t = new ScrollTextBox("", 0, 40, 150, 70); redraw(); } つづく