java - Allow only integers and decimal values in JFormattedTextField or JTextField in Swing -


how allow integers , decimal values in jformattedtextfield or jtextfield in java swing. i'm using intellij idea gui form designer - grid layout manager.

as automatically creates variable in class not able set mask formatter or numberformat. how allow int , float numbers?

read swing tutorial on how use formatted textfields working examples.


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -