Below is my code. My JFormattedTextField is numberField. I need a format (pattern) for the following:
100.00000 needs to appear as 100.000
10000.123456 needs to appear as 10000.123
1.055E9 needs to appear as 1055000000.000
211.E9 needs to appear as 211000000000.000
is there a pattern to do this?
NumberFormatter doubleFormatter = new NumberFormatter(new DecimalFormat("#0.000#"));