Java Swing - Ajax

 

Java Swing Multilingual AJAX interface

(Note: for using Ajax in Java Swing, please go to this Ajax with Java Swing blog entry)


Java Swing Multilingual Interface with AJAX method and its mirrored Ajax Multilingual Interface based on Dojo Toolkit.


Rather than putting the entire Java Code on-line, the AJAX code is provided in this blog entry.  Screenshots of the application are also provided at the bottom of the page.


A mirrored Ajax interface and its usage instruction are also provided below.  It works the same way as the Java Swing interface and is sitting on top of Dojo Toolkit.  The Ajax interface is ported from the Java Swing version and have the same functionality.

Ajax Functionality:


- Click on “Load Data” to make an Ajax call.  It would load data from the server and display the data on the Text Area.


- In the “File” menu, one can choose between “Use Data 1” and “Use Data 2” for loading different data file from the server


Multilingual Functionality:


- Click on one of the four button to change the language for both the “menu bar” and the “buttons”.

All other element in the interface will stay in English.


“As self” means the button label will be displayed in its own language.

    For example, “English” will be written in English.


“As chosen language” means the button label will be displayed in the selected language.

    For example, when Traditional Chinese is selected. “English” will be written in

    Traditional Chinese.  (“English” in Traditional Chinese is “英文”.

    So “英文” will be displayed on the button.)

Instruction for using the interface

Ajax Interface

Java Swing Interface Screenshots

Email Me