I want to do calc with java. I am using Netbeans IDE. I want to make my JTextField allow only double numbers. What is the shortcut code to do this?
Asked
Active
Viewed 867 times
-4
-
begging for code with no research or effort is off-topic – Jan 12 '14 at 20:33
-
1write a validation method on focus of the text field – Hussain Akhtar Wahid 'Ghouri' Jan 12 '14 at 20:34
-
I search all things about it and try all codes but they aren't execute. – Soykan Jan 12 '14 at 20:36
1 Answers
0
Like everybody else whose asked to question, try using a

MadProgrammer
- 343,457
- 22
- 230
- 366
-
I solve this problem with using JFormattedTextField with changing formatterFactory property. – Soykan Jan 12 '14 at 20:51