JFileChooser and JOptionPane UI language problem
Posted on 2001-07-04
When I set the locale (location) to "Chinese (Taiwan)" in window 200, the UI language in the JFileChooser of my java application will become chinese (e.g. the label "file name", "file type", "open" and "cancel", etc). And when I change the locale to English, then the UI become english again.
How can I explicitly set the UI language for JFileChooser?
The same problem occurs when I call:
JOptionPane.showConfirmDialog(null, "xxx", "yyy", JOptionPane.YES_NO_OPTION)
The "yes" and "no" button will be affected by the OS locale. How can I solve it?