Currency Symbol in JTable



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);
.



Relevant Pages

  • Re: Creating an Excel Automation Add-In using C#
    ... For Q1, I think this may be caused by the different locale, e.g. you set ... While if the formula has nothing to do with the cell change, then the excel ... recalculate the formula,e.g. ...
    (microsoft.public.dotnet.framework.interop)
  • Re: threads vs. processes
    ... > In view of POSIX threads, can we say that heavyweight processes are ... > becoming more and more obsolete. ... running in a different locale or under different uid/gids. ...
    (comp.unix.programmer)
  • Re: Locale testing
    ... yyyy-mm-dd date format but I cannot seem to configure this. ... that Open Office is ignoring a correctly set locale and I could file ... cell, then return. ... have you in the edit bar? ...
    (Debian-User)
  • DataGridView - in a real bind
    ... Now, make the Country and Locale columns ComboBox columns, and bind the ... add an event handler that places a filter on the BindingSource to ... clicks or enters a Locale cell in the DataGridView. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Truncating leading zeroes
    ... I got it to work by formatting the cell for time and changing the locale to ... English (United Kingdom), but I'm not sure what else that might do. ...
    (microsoft.public.word.docmanagement)