Naoko Hamamoto's Weblog

« Previous month (Jan 2009) | Main | Next month (Mar 2009) »

20090227 Friday February 27, 2009

What's the Issue? Cannot Change the UI Language on my Windows XP?

I do a lot of testing under various configurations, and one of the testings that I had to perform today required Japanese Windows XP environment.

I decided to use my own Windows laptop, which has Windows XP in English installed.

I know that Windows allows you to change the language in which the UI components are displayed (and I have done it before at work), so I was looking for a way to do that. Looks like you can do it by changing the Language used in menus and dialogs option. This article explains the steps very well.

So I tried to do the same on my system, BUT there is no such option on my system. I logged out and logged back in, rebooted the system, etc. No luck. What the heck?

It turns out that this feature is only available on Windows XP Professional Edition. The version that I have is Windows XP Home Edition, so this feature is disabled. Oh boy, no wonder I could not get it to work at home, but it was working fine elsewhere. Just FYI, you can find out the version of your OS by running the winmsd command at the command-line prompt. You will see something like the following with a lot of information about your system.

Posted by naoko ( Feb 27 2009, 04:31:12 PM PST ) Permalink Comments [2]

20090225 Wednesday February 25, 2009

JavaFX Forum in Simplified Chinese Now Available!

We now have a JavaFX forum in Simplified Chinese! Thanks to my colleague May for setting it up. You can also access it from the SDN China main page.

Unfortunately, I cannot read Chinese, but hopefully this will help the Chinese community adopt the technology even more!

Posted by naoko ( Feb 25 2009, 02:08:40 PM PST ) Permalink Comments [0]

20090220 Friday February 20, 2009

JFXStudio - Where you can show off your JavaFX Creations

I came to know about JFXStudio today. It's where people can post their own JavaFX creations. More details on Joshua Marinacci's Blog, the creator of the site. Looks very cool!

Posted by naoko ( Feb 20 2009, 02:59:20 PM PST ) Permalink Comments [0]

20090219 Thursday February 19, 2009

Free JavaFX Online Course at javapassion.com

You may already know about this. Jim Weaver and Sang Shin are offering a Free 15-Week JavaFX Programming (with Passion!) Online Course. It started on January 30, 2009. Currently, we are in week three.

I have been studying JavaFX in my spare time. So far, the course has been great. It provides links to a lot of useful documents to read, and labs contain a bunch of samples that we can actually run in NetBeans to play around with. At the end of each session, there is some homework that we do and submit, to make sure that we understood what we learned.

As a newbie to JavaFX, I always feel that "it's so easy to do this in Java. How can I do the same in JavaFX?" Hopefully with time and this course, things will change for me!

Posted by naoko ( Feb 19 2009, 01:24:32 PM PST ) Permalink Comments [0]

20090212 Thursday February 12, 2009

JavaFX.com is Renewed with JavaFX Mobile and my blog is Introduced there!

JavaFX.com is all new! JavaFX 1.1 is released late last night, which features JavaFX Mobile. Check it out.

Also - my blog is introduced on the new JavaFX.com site, under Explore. This is exciting! Now hopefully more people learn about the internationalization features in JavaFX and start using them in their applications. Please report any issues you find, it will help us improve!

Adding the image here before it goes away... :)

Posted by naoko ( Feb 12 2009, 11:01:21 AM PST ) Permalink Comments [0]

20090204 Wednesday February 04, 2009

How to Internationalize a JavaFX Sample using NetBeans IDE

Someone asked me to write step-by-step instructions on how to internationalize a JavaFX sample using NetBeans IDE, so I decided to also post it here.

For this exercise, we are going to use Fading Transparent Window sample, as it is simple and it has some text in it. Most of the samples are very visual, and there are no messages to localize.

Setup

1. We will use NetBeans, so download NetBeans 6.5 with JavaFX support from here. Follow the instructions to install it on your system.

2. Let's grab the source code for Fading Transparent Window. Click on Download Source Code button to download the zip file. Extract the zip file into a directory of your choice. It contains a NetBeans project called TransparentWindow.

3. Open this project in NetBeans.

4. Now run it. You can simply click on the green triangle at the top. Move the mouse cursor in and out of the application see the visual effect.

Internationalization

OK, time to internationalize this application. I have outlined the steps required to internationalize a JavaFX application in my previous entry, JavaFX Localization. Steps are almost identical here, except that in this scenario, we will programmatically set the default locale to Japanese per the requester.

1. Change the application to use string literal translation notation.

You can either embed it or declare it as a variable.

Embedded:
====================================================

====================================================

Declared:
====================================================

====================================================

2. Let's create Main_ja.fxproperties. Place this file in the same directory as Main.fx in the NetBeans project.

3. The application should run just fine in a Japanese environment now, but since I am testing it on a system with English locale set as default, I am going to programmatically set my default locale to Japanese.

====================================================

====================================================

Of course we can also simply do

====================================================

====================================================

but I wanted to show the other way just in case if the locale of your choice is not defined in the Locale class.

4. Now it's all set, ready to be run. Simply click on the triangle to execute it.

That's it. Very simple and straight forward!

Posted by naoko ( Feb 04 2009, 04:33:13 PM PST ) Permalink Comments [2]


Valid HTML! Valid CSS!

This is a personal weblog, I do not speak for my employer.