Problem changing locale for JOptionPane at runtime
I have a application which need to change the language at runtime. All other things work just fine except the JOptionPane.
The button displayed by JOptionPane.showMessageDialog() always use the language displayed the first time my applicaiton started.
Even after I use Locale.setDefault() and UIManager.getDefaults().setLocale() method. The button just can't get the right locale.
I stepped into the java source and found the JOptionPane object created by static method showOptionDialog() did not have the locale attribute correctly set. Which cause parameter passed to later call UIManger.getString() were also wrong.
Can anybody help to advise?

