C
CD1
hi guys!
i wanna create a JFormattedTextField that filters only currency values.
i did something like:
JFormattedTextField ftfField = new
JFormattedTextField(NumberFormat.getCurrencyInstance(myLocale));
but, i noticed that i have to type the currency symbol on the field!
but i dont want it! that means, using the default locale, if i wanna
type 25 dollars i HAVE to type "$25"!!! but i want it to be only "25".
my locale is another one (brazilian), but the problem is the same.
i've searched about this on this group, but i havent found a specific
doubt like mine. there were many topics about formatting string (as a
variable), but i wanna something to put on a JFormattedTextField (or
whatever component is better).
thank u all,
Cristian Deives
E-mail: "cristian deives * gmail!computer".replace(" ",
"").replace("*", "@").replace("!", ".").replace("puter", "")
i wanna create a JFormattedTextField that filters only currency values.
i did something like:
JFormattedTextField ftfField = new
JFormattedTextField(NumberFormat.getCurrencyInstance(myLocale));
but, i noticed that i have to type the currency symbol on the field!
but i dont want it! that means, using the default locale, if i wanna
type 25 dollars i HAVE to type "$25"!!! but i want it to be only "25".
my locale is another one (brazilian), but the problem is the same.
i've searched about this on this group, but i havent found a specific
doubt like mine. there were many topics about formatting string (as a
variable), but i wanna something to put on a JFormattedTextField (or
whatever component is better).
thank u all,
Cristian Deives
E-mail: "cristian deives * gmail!computer".replace(" ",
"").replace("*", "@").replace("!", ".").replace("puter", "")