Write numbers in a TextInputComponent [message #1696053] |
Thu, 21 May 2015 12:08 |
Romain Vianef Messages: 32 Registered: April 2015 |
Member |
|
|
Hello to everyone,
With my program, I would like to write a String in a TextInputComponent (input of a word) of my RCP application. This String parameter contains one number.
Suppose that word is ROM1AIN. When I execute my program, at the input, I got ROM&AIN. However if, before the input, I use the key "Verr Maj" , I got ROM1AIN. I understood it comes from my keyboard layout (I use French Keyboard).
Morever, when I execute this :
" System.out.println(Locale.getDefault().toString()); "
my parameters of language are fr_FR.
That's is good for me, right ?
I would like write numbers without my changing the language parameters of my computer and my using the key "Verr Maj". It would be inconveniences for the users.
Do you know how I can do ?
Best regards.
Romain
[Updated on: Thu, 21 May 2015 13:23] Report message to a moderator
|
|
|
|
Re: Write numbers in a TextInputComponent [message #1696115 is a reply to message #1696068] |
Fri, 22 May 2015 06:02 |
Romain Vianef Messages: 32 Registered: April 2015 |
Member |
|
|
Hi Alex,
I think the keyboard properties file is independent of my program, because the org.eclipse.jubula.client.api.jar file is already included in my project (Java Build Path).
What I find weird is this line :
System.out.println(Locale.getDefault().toString());
-> fr_FR
I would have understood if I had changed the parameter to put in French, but I don't. Maybe in background, the system looks for the nature of my keyboard and finds I use a French keyboard.
Best regards.
Romain
[Updated on: Fri, 22 May 2015 06:04] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03467 seconds