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 SelectIntegerKeyboard { double x,y,w,h; int val,on; Font FONT; int limit; /*rectangle*/ public SelectIntegerKeyboard(double x,double y,double w,double h,int val) { this.x=x; this.y=y; this.w=w; this.h=h; this.val=val; this.on=0; this.FONT=new Font("Helvetica",Font.PLAIN,11); limit=100000; } public SelectIntegerKeyboard(double x,double y,double w,double h,int val,int lim) { this.x=x; this.y=y; this.w=w; this.h=h; this.val=val; this.on=0; this.FONT=new Font("Helvetica",Font.PLAIN,11); this.limit=lim; } public int inside(Point p) { int test=0; if((p.x>x)&&(p.xy)&&(p.y=0)&&(ch<10)){ temp=10*temp+ch; } if(temp=0)&&(ch<10)){ temp=10*temp+ch; } val=temp; if(val>99999999) val=99999999; if(test=='-') val=-val; } }