Reputation: 2092
Java's default JFormattedTextField is not easy to use. What are the other Java libraries available that provide an advanced formatted text field?
Upvotes: 1
Views: 834
Reputation: 117587
Use simple JTextField
and set a DocumentFilter
filter on it. See this example.
Upvotes: 2
Reputation: 220832
RSyntaxTextArea has served me well. I'm using it in the jOOQ Console:
http://fifesoft.com/rsyntaxtextarea/
Although, that might be a bit of overkill for you...?
Upvotes: 2