Trying to get the value of a JTextField as it's being updated (chars inserted, chars removed, chars changed) and then setting it's value.
I've run into the "Attempt to mutate in notification" exception which lead me to:
However, you should never modify the contents of a text component from within a document listener. If you do, the program will likely deadlock. Instead, you can use a formatted text field or provide a document filter. from here
I'm using a document filter to limit the number of chars of the JTextField to 12 but I don't know how I can detect changes on the JTextField without using the document listener...which is the source of the exception
Any advice or SSCCE for me?