Currency Symbol in JTable
- From: RVince <rvince99@xxxxxxxxxxx>
- Date: Thu, 31 Jan 2008 09:04:21 -0800 (PST)
The more I read the Java docs and google on this issue -- the more
confused
I am becoming. If I am setting a cell in a JTable to a certain
currency,
formatted to a particular Locale, it works out fine for me if My
Locale is
US say. Things print with the leading $ sign, etc.
however, when I change Locales, I am not getting the proper currency
symbol
printed (say, the Yen Symbol,. or the Euro Symbol) instead I am
getting
rather a grey box in lieu of the symbol.
I have tryed altering the font of the JTable to no avail. Clearly I
am
missing someting that is a particular quirk here. Does anyone have
experience with this issue and can anyone point me in the right
direction
here. Thanks.
DefaultTableModel dtm;
double fdollars;
Local locale = Locale.JAPAN.
.....
dtm.setValueAt(NumberFormat.getCurrencyInstance(locale).format(fdollars),
q,
2);
.
- Follow-Ups:
- Re: Currency Symbol in JTable
- From: Roedy Green
- Re: Currency Symbol in JTable
- Prev by Date: Re: general performance question
- Next by Date: Re: Currency Symbol in JTable
- Previous by thread: Re: Free Certifications from www.brainbeer.scum
- Next by thread: Re: Currency Symbol in JTable
- Index(es):
Relevant Pages
|