Can anyone help me with the validation for JTextField
which can only allow up to 3 digits before the decimal and up to 2 digits after the decimal?
I used regex \\d{3}\\.\\d{2}
for InputVerifier
. This is allowing exactly 3 and 2 before and after decimal. I need <=3
and <=2
before and after decimal.
My project only needs JTextField.