1

Java's default JFormattedTextField is not easy to use. What are the other Java libraries available that provide an advanced formatted text field?

Lukas Eder
  • 211,314
  • 129
  • 689
  • 1,509
Sachindra
  • 2,052
  • 4
  • 23
  • 29

2 Answers2

2

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...?

Lukas Eder
  • 211,314
  • 129
  • 689
  • 1,509
2

Use simple JTextField and set a DocumentFilter filter on it. See this example.

Community
  • 1
  • 1
Eng.Fouad
  • 115,165
  • 71
  • 313
  • 417