Solved

Internationalizing a GUI Form in NetBeans IDE 5.0

Posted on 2006-06-22
7
287 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
7 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 125 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 125 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Suggested Solutions

Title # Comments Views Activity
servlet filter example 37 83
Glassfish admin console not working 1 55
printf performancy 11 84
hashmap order 17 40
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
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 basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

713 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