Regex « Text Input « Java Swing Q&A





1. JFormattedTextField using a regular expression formatter?    stackoverflow.com

After much frustration with getting a JFormattedTextField to work with my custom formats, I was wondering if there was a Formatter or FormatterFactory that uses regular expressions? My idea is that if ...

2. using Regex and JFormattedTextfields - need help    coderanch.com

Thank you for your reply, I have looked on that newletter, my problem lies in the passing of the formatter to the JFormattedTextfield. If I pass it as follows: new JFormattedTextField(new RegexFormatter(myForm) then, does it validate as the user types in text, or other checks are required if focus is lost? If so, how to check this? Thank you again. Any ...