[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Internationalizing a GUI Form in NetBeans IDE 5.0

Posted on 2006-06-22
7
Medium Priority
?
310 Views
Last Modified: 2008-03-10
Hi all,

I am trying to internationalize an applet in Netbeans 5.0
I have read and implemented the tutorial at http://www.netbeans.org/kb/articles/gui-i18n.html
But the problem is the tutorial is meant for an application. But I do have an applet.

For an application - as you know - we use a ResourceBundle and property file to internationalize labels and all other text. And then when we run the application we use the parameters for English : -Duser.language=en -Duser.country=GB
There is no problem with that. But an applet is not executed this way. I cannot use the same VM options for an applet.

Does anybody know how to run the internationalized applet?

Thanks in advance,
Baris
0
Comment
Question by:barisdur76
  • 2
  • 2
5 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 16958400
You can put those parameters in the applet parameters. ResourceBundles can be read too
0
 
LVL 92

Expert Comment

by:objects
ID: 16958410
for an applet you'd pass the parameters as applet parameters in the applet tag.
And then access then from the applet context.

Alternatively you could use whatever values are already set in the system properties, ie. the users current settings.
0
 

Author Comment

by:barisdur76
ID: 16958866
OK,
You tell me to modify the HTML code and add -Duser.language and Duser.country parameters and set them as needed. Then i should use them in the applet.
But indeed I don't use those parameters in the test application. I don't get them and use them at all.
0
 
LVL 86

Accepted Solution

by:
CEHJ earned 500 total points
ID: 16958920
>>I don't get them and use them at all.

Then you don't need them in the applet. The platform defaults of the client machine will be used
0
 
LVL 92

Assisted Solution

by:objects
objects earned 500 total points
ID: 16959027
> But indeed I don't use those parameters in the test application. I don't get them and use them at all.

Then as I mentioned above theres nothing you need to do.
You only need to specify them as applet params if you want to overide client settings according to some server side prefs you may have.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Suggested Courses
Course of the Month17 days, 16 hours left to enroll

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question