File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes change language JOptionPane Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "change language JOptionPane" Watch "change language JOptionPane" New topic
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: 19718
    
  20

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 - OCEEJBD 6
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: change language JOptionPane