Possible Duplicate:
jTextField accept only alphabet and white space
Ey!
i have a Custom JTextField
(extends from JTextField
) , this CustomJTextField
,mainly has the JtextField
Methods in Spanish like setFont
Renamed to SetFuente
,
In this Custom JTextField
,i need to create a method that validates that the only values that can be written are Alphanumeric and (.) dot , so if i write (,) or (*) the symbol doesn't appear on the JTextField
, something like CustomJTextField.setFormat(ALPHA)
.
i didnt find the Swing library that can help me with this, any suggestion is weel received
thx!