posted 20 years ago
Hello !
You did not say if you are using swing,AWT or SWT, anyway, I'm using SWT
and I believe that basiclly this shuld be in every one of them (maybe a not excactly the same name)
Anyway , use this:
( Text myText = new Text(composite,SWT.NONE) )
myText.setTextLimit(2);
this will not let the user enter more that 2 digits
Hope this is what you need
Dave