java - JFormattedTextField not working correctly -


i have code:

jformattedtextfield formattedtextfield = new jformattedtextfield();         formattedtextfield.setbounds(25, 330, 56, 20);         contentpanel.add(formattedtextfield);         formattedtextfield.setvalue(new double(10.0)); 

its supposed accepting double numbers, if input character, 's', taken anyway. how can change block make accept keyboard numbers or ','? ignoring other character


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -