How can I get english text using JOptionPane input dialog box?

Hello

I have tried the following code

JOptionPane.setDefaultLocale(Locale.ENGLISH);

FileName = JOptionPane.showInputDialog(_frame,"give the project name");

but I get french text "annuler" instead of "cancel"

How can I resolve this problem in order to get english text?

Thanks

Regards

[334 byte] By [david_davida] at [2007-11-26 19:56:01]
# 1
TrySystem.setProperty("user.language", "en");
masijade.a at 2007-7-9 22:49:36 > top of Java-index,Desktop,Core GUI APIs...
# 2

Hi, I tried these

JOptionPane.setDefaultLocale(java.util.Locale.US);

and

System.setProperty("user.language", "en");

but still not solved..

when display

System.out.println(TelJOptionPane.getDefaultLocale().getLanguage());

before call JOptionPane.showInputDialog() , it display 'en'

but in dialog it will display in french lang.

plz give suggestions..

david_davida at 2007-7-9 22:49:36 > top of Java-index,Desktop,Core GUI APIs...