A textbox class only accept integers in Java
- by alex
I just want to do a textbox class onl accepts integers..
I have done something, but i think it's not enough.
Can anyone help me, please?
Thanks...
import java.awt.TextField
public class textbox extends TextField{
private int value;
public textbox(){
super();
}
public textbox(int value){
setDeger(value);
}
public int getValue() {
return value;
}
public void setValue(int value) {
this.value = value;
}
}