Localization of javax.swing.JOptionPane's default button labels in OS X

Posted by Chry Cheng on Stack Overflow See other posts from Stack Overflow or by Chry Cheng
Published on 2010-04-19T10:00:06Z Indexed on 2010/04/19 10:03 UTC
Read the original article Hit count: 275

Filed under:
|
|

How can this be achieved? I have the ff. test code:

javax.swing.JOptionPane.showMessageDialog(null, "Hello, world!");

Running it with or without, say, -Duser.language=zh and -Duser.country=TW makes no difference. I.e., the OK button is still labeled "OK". In Windows, for example, it is replaced with the Traditional Chinese equivalent.

© Stack Overflow or respective owner

Related posts about osx

Related posts about joptionpane