Solved

Internationalizing a GUI Form in NetBeans IDE 5.0

Posted on 2006-06-22
7
297 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
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…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

729 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