Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个带有文本字段的 jframe。我想问一下怎么只能接受包含数字的输入文本字段,所以当用户输入字母时不会被接受
使用DocumentFilter:例子。
DocumentFilter
另见: