Two simple forms relevant to commerce applications are an information form about a product and an order form for the product. This assignment internationalises such forms. The first form will start off in the default locale but can be reset to any desired locale from menu entries. Both forms will then display fields as appropriate to the chosen locale.
This assignment has graded levels. The simplest version will be given a Pass if done satisfactorily, but to gain higher grades more features will have to be added.
You will need to implement a Java Swing application that can present localised forms to collect user information. The forms will need to have
File
(Save
, Quit
)
entries, and Locale
(Country
, Language
)
entries
You should hand in the following
You will be asked to demonstrate your system. This will be in the tutorial following the week of submission.
General comments:
As described above
The specification given above will gain a Pass grade if done satisfactorily. Higher grades will be given on completion of additional functionality. Each additional function will gain an extra grade (to a maximum of HD). The additional functions are
Implement an input method for at least one language
Much s/w imposes "hard" limits on inputs. For example, only allowing two characters for the value of "State" (since the US has states which only have two characters in their abbreviations: CA, NY, VI, etc). Make all entry fields have a "default" format, but allow the user to enter other formats if they really want to (after appropriate information messages)
All error messages ("can't save file", "first name can't be empty", etc) to be shown in the current locale
Save and restore information from files. On save, there should be a choice of file formats e.g. Big5, UTF-8
A View
menu should offer a choice of fonts that will display
text in the current locale and set this font in all text elements
The final level will be the sum of all extensions.
There are other possible extensions which may be worth exploring, Discuss any ideas you have with your lecturer.
This assignment (and the next one) may be done individually or in groups of two. An individual assignment will need to cover as much ground as an assignment done by two people. Requests to form a group of three or more will not be accepted, even if your partner disappears the day before the assignment is due, having done no work.
The assignment is due by 4pm, Friday Sept 8, the end of week 8. Hand it in to the FIT office, level 6 building H.