[PJUG Javamail] lower case 'e' in exponential notation??

glen e. p. ropella gepr at tempusdictum.com
Wed Feb 25 21:55:04 UTC 2009


Does anyone know a convenient method for a JFormattedTextField (or it's
NumberFormatter) to accept numbers in the form:

   1.0e-5

instead of (or, preferably, in addition to):

   1.0E-5

At the moment, I'm using:

java.text.DecimalFormat df = new java.text.DecimalFormat("#0.0###E0");

Then later, I set the JFormattedTextField to use that formatter.

-- 
glen e. p. ropella, 971-222-9095, http://tempusdictum.com




More information about the Javamail mailing list