Tutorial week 3
-
Does the Java
Locale
class have a method to find all the
locales supported for a particular country e.g. all locales
for Switzerland? If not, how would you get
this information from the available methods?
-
Does the Java
Locale
class have a method to find all the
locales supported for a particular language e.g. all locales for
Spain? If not, how would you get
this information from the available methods?
-
It is common to see menus saying "Choose a country" or "Choose
a language". Write code to display lists of country and
language names in "display format" for the current locale and return a locale
for that country and language choice
-
Modify the last question so that once a language has been chosen
only the possible countries are displayed (or vice versa)
for choice e.g. once the language is chosen as French the
choice of countries is limited to France, Belgium. Luxembourg,
Switzerland and Canada.
-
Out of the last two answers, which would users be happier with? Are
there alternatives which might be preferable?
-
Write a Swing application that will read the name of an image
file from a properties file and display that file.
Use some images typical of a culture e.g. pictures of
common food items, facial images, etc
-
Find a list of "standard" names for common GUI menu operations
such as "Open", "Close" etc in various languages. Write a class or method to return
the appropriate string from a "Menu" properties file for
an operation
-
Write a class
QuestionDialog
with constructor that will take a
single string (in say English) and display a question dialog box
with suitable text taken from a properties file. What if the question
text contains an "=" sign?
-
If you know how to do XML parsing, write a parser to find the
currency symbol for a locale from its CLDR file
Jan Newmarch (http://jan.newmarch.name)
jan@newmarch.name
Last modified: Sun Mar 13 15:18:55 EST 2005
Copyright ©Jan Newmarch
Copyright © Jan Newmarch, Monash University, 2007
This work is licensed under a
Creative Commons License
The moral right of Jan Newmarch to be identified as the author of this page has been asserted.