What is a simple way to create a text field (or such) that only allows the user to enter ints/doubles in Java?

后端 未结 3 1492
别跟我提以往
别跟我提以往 2020-12-21 14:01

I am looking for a way to ensure that my text field (JTextField, JFormattedTextField) is returning a double or int rather than a string when I call .getText(). What is the b

3条回答
提交回复
热议问题