import java.applet.Applet; import java.awt.event.*; import java.awt.*; import java.awt.geom.*; /*This is a basic class for a rectangular integer entry button*/ public class WordSquare { double x,y,w,h; String W; int on; Font FONT; /*rectangle*/ public WordSquare(double x,double y,double w,double h,String ww) { this.x=x; this.y=y; this.w=w; this.h=h; this.W=ww; this.on=0; this.FONT=new Font("Helvetica",Font.PLAIN,12); } public int inside(Point p) { int test=0; if((p.x>x)&&(p.xy)&&(p.y0) temp=temp.substring(0,n-1); } if (e.getKeyChar()!=KeyEvent.VK_BACK_SPACE) { temp=temp+e.getKeyChar(); } W=new String(temp); } }