Localization of javax.swing.JOptionPane's default button labels in OS X
- by Chry Cheng
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.