Solved

Internationalizing a GUI Form in NetBeans IDE 5.0

Posted on 2006-06-22
7
256 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
allStar challenge 1 43
Systems talking to each other 5 110
@SBGen Method 3 25
bitbucket vs gitbucket 3 32
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…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
The viewer will learn how to implement Singleton Design Pattern in Java.

760 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now