I need to restrict a text field input to just digits, comma and dots.
I could do this using a DocumentFilter
and a JTextField
but what if I wanted to use a JFormattedTextField
?
I've tried to look at some examples but I didn't understand.
I need to restrict a text field input to just digits, comma and dots.
I could do this using a DocumentFilter
and a JTextField
but what if I wanted to use a JFormattedTextField
?
I've tried to look at some examples but I didn't understand.