e13420xx
e13420xx

Reputation: 718

filtering AWT textfield input texts

In jtextfield, One can restrict the inputs of an jtextfield by overriding the insertString method of document. How can i do these in awt textfield? How can i filter the inputs of an awt textfield?

Upvotes: 1

Views: 215

Answers (1)

mKorbel
mKorbel

Reputation: 109823

One can restrict the inputs of an jtextfield by overriding the insertString method of document.

jtextfield by overriding the insertString method of document.

  • maybe you need to use DocumentFilter for Swing JTextComponents

How can i do these in awt textfield? How can i filter the inputs of an awt textfield?

Upvotes: 1

Related Questions