Java Example |
---|
class MyText extends TextField { public boolean action(Event evt) { String str = getText(); for (int n = 0; n < str.length; n++) if ( ! str.charAt(n).isDigit()) { new ErrorDialog("Must be numeric").show(); break; } return true; } }
Slide 69 | ©Copyright 1997 | Jan Newmarch |