| Author |
change language JOptionPane
|
Nouf Nassri
Ranch Hand
Joined: Apr 22, 2010
Posts: 40
|
|
Hello,
I have a program entirely in English, and I post in dialogs with the methods of JOptionPane.
But I found that the buttons appear in French, so I OUI/NON or OK/ANNULER instead of YES / NO and OK / CANCEL.
thanks.
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19232
|
|
|
You can switch your entire Locale to English by calling Locale.setDefault(Locale.ENGLISH) at the start of your application. Please note that this also affects date/time and number parsing and formatting.
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
Nouf Nassri
Ranch Hand
Joined: Apr 22, 2010
Posts: 40
|
|
|
thank you for your reply but the language does not change
|
 |
 |
|
|
subject: change language JOptionPane
|
|
|