[英]filtering AWT textfield input texts
In jtextfield, One can restrict the inputs of an jtextfield by overriding the insertString method of document. 在jtextfield中,可以通过覆盖document的insertString方法来限制jtextfield的输入。 How can i do these in awt textfield?
我如何在awt文本字段中执行这些操作? How can i filter the inputs of an awt textfield?
如何过滤awt文本字段的输入?
One can restrict the inputs of an jtextfield by overriding the insertString method of document.
可以通过重写document的insertString方法来限制jtextfield的输入。
AWT TextField
, you can to add DocumentListener only to Swing JTextComponents AWT TextField
不可能的,您只能将DocumentListener添加到Swing JTextComponents jtextfield by overriding the insertString method of document.
jtextfield通过覆盖文档的insertString方法。
DocumentFilter
for Swing JTextComponent
s Swing JTextComponent
使用DocumentFilter
How can i do these in awt textfield?
我如何在awt文本字段中执行这些操作? How can i filter the inputs of an awt textfield?
如何过滤awt文本字段的输入?
for AWT TextField
you can use 对于
AWT TextField
您可以使用
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.