latitude: 43,324523 longitude: 34,958140
I used IntegerField provided here IntegerField
I can parse the number to get the format what I like but I want it while in the frame screen. When user typing (without entering dot or comma)
But how I will be able to make it.
this is the frame I would like to edit
In this screen it should be changed
Like the second box, User won't enter the dots but this is not the format I like. When you read the code you will understand what I mean.
third screenshot was shot with this code
DecimalFormat format = new DecimalFormat("##,####");
format.setGroupingUsed(true);
NumberFormatter formatter = new NumberFormatter(format);
formatter.setValueClass(Integer.class);
formatter.setMaximum(Integer.MAX_VALUE);
formatter.setAllowsInvalid(false);
IntegerField minField = new IntegerField();
JFormattedTextField maxField = new JFormattedTextField(formatter);