简体   繁体   中英

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?

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 JTextComponent s

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM