This a simple application that calculates the average driving time. The sample directory contains both the application (Dcalc.java) and applet (TextDcalcApplet.java, BinaryDcalcApplet.java, ServerDcalcApplet.java and DatabaseDcalcApplet.java) versions of Dcalc.
The Dcalc application contains the following files:
| Dcalc.java | This is application class. Depending on the command line parameter the applications shows either the binary frame ("binary"), text frame ("text"), server frame ("server"), or the database frame ("database"). |
| MainFrame.java | This is the base frame class. |
| BinaryMainFrame.java | This frame uses binary dictionary. The frame is derived from the base frame. The
dictionary data is stored in the diction.mld file. |
| TextMainFrame.java | This frame uses text dictionary. The frame is derived from the base frame. The
dictionary data is stored in the language.txt and translat.txt
files. |
| ServerMainFrame.java | This frame uses server dictionary. The frame is derived from the base frame. The
dictionary data is stored in the dcalc.mdb Access database. |
| DatabaseMainFrame.java | This frame uses database dictionary. The frame is derived from the base frame. The
dictionary data is stored in the JavaDcalc sample dictionary of MDS. To use
this frame you need to have Multilizer Dictionary Server running on the same computer. |
There are four different Dcalc applets. Each using different kind of frame and dictionary:
| BinaryDcalcApplet.java | This is an applet that shows the BinaryMainFrame frame. |
| BinaryApplet.html | This is a HTML file containing the BinaryDcalcApplet applet. |
| TextDcalcApplet.java | This is an applet that shows the TextMainFrame frame. |
| TextApplet.html | This is a HTML file containing the TextDcalcApplet applet. |
| ServerDcalcApplet.java | This is an applet that shows the ServerMainFrame frame. |
| ServerApplet.html | This is a HTML file containing the ServerDcalcApplet applet. |
| DatabaseDcalcApplet.java | This is an applet that shows the DatabaseMainFrame frame. |
| DatabaseApplet.html | This is a HTML file containing the DatabaseDcalcApplet applet. |