• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

change language JOptionPane

 
Nouf Nassri
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20611
63
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Nouf Nassri
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you for your reply but the language does not change
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic