Validation « Text Input « Java Swing Q&A





1. Java JFormattedTextField for typing dates    stackoverflow.com

I've been having trouble to make a JFormattedTextField to use dates with the format dd/MM/yyyy. Specifically, as the user types, the cursor should "jump" the slashes, and get directly to the ...

2. How to get the same value as the user is seeing from a JFormattedTextField?    stackoverflow.com

I'm using a NumberFormatter and JFormattedTextField, but the .getValue() doesn't return the same value as the user is seeing. I think the input-string is parsed using NumberFormats parse-method, and I get the ...

3. Validation through JFormattedTextFields in Java    stackoverflow.com

I want to have two textfields which will have the following validations

  1. Both should be Integers
  2. The value in one textfield should be a integer multiple of other
I have used two JFormattedTextFields ...

4. howto use JFormattedTextField allowing only letters and numbers    stackoverflow.com

I have this code and cannot get MaskFormatter right
maskformatter

MaskFormatter formatter = null;
  try {
    formatter = new MaskFormatter("HHHHHHH");
  } catch (ParseException e) {
  ...

5. JFormattedTextField validation    coderanch.com