Hi
How to create a TextField that only accept a specific string format?
e.g. a TextField that only accept digits,
a TextField that only accept alphabetic characters,
or accept any format that is specified by a regular expression?
Can this be done?
One way of doing this is to validate the text every time DocumentListener.documentUpdate(DocumentEvent) is called, but is this the only, and efficient way?
You can do this by rolling out your own custom TF that accepts regular expressions (there are third party components for Echo2 that you can use as a starting point).
whether is eg ? thanks
whether is eg ? thanks