> List of tutorials


Fat-Client-Development - Universal structure for parameters and getting the directory-names

* For this document and all references (links) please obey the hints and regulations concerning copyright, disclaimer and trademarks.

  • The owner of this web-site (www.javascout.biz) is not responsible for the content of web-sites linked within this document or other documents of www.javascout.biz.

  • If this document or other documents of this web-site (www.javascout.biz) infringes rights of third parties and your rights are infringed or you think that rights of others are infringed, please inform the author.
    An e-mail can be sent by clicking onto the 'hungry mailbox' in the upper right corner.

Last revision of this document:
2006-05-05

This step of the tutorial deals with the universal structure for parameters.

In this structure values for general purposes are held while the application is running.
For a detailed description of the values please see the Code for JSBS_UniversalParameters.
Constants are coded in a separate 'Interface'; please see
Code for JSBS_UniversalParameters_Constants.

Within this step, code for the following tasks is developed:
* At the 'construction' of this class, the subdirectory where the file for the application resides is determined.
* The language-code, passed as a parameter when the application is started, is stored in the relevant variable and used for startup messages.
* Relatively to this directory, the subdirectories for language dependant text, graphics and parameters for access to database or Java-Application-Server (JAS) are build (see Directory Architecture).

Preface:

The code written in this tutorial is far away from being optimized.
Emphasis of this tutorial is to develop the application in small steps where the completion of each step allows the application to be run eror-free and showing the result aimed by the step.
Therefore the code is written to be understandable in favor of being optimized
.

Credits:

None - that system was developed by myself ;-).

Prerequisites:

Create the interface JSBS_UniversalParameters_Constants:

Create the class JSBS_UniversalParameters:

The number of screenshots for repeating steps will be reduced significantly from now on.
If you feel insecure with the textual descriptions please go back to the previous steps or work through the tutorial
JS_Base02 - DataBase-Loader with a GUI
for practising.

Incorporate the class JSBS_UniversalParameters into the base-frame:

Introduce a method which contains the code to be performed before the frame is build:

Getting the language used during start-up of the application as a parameter:

Next Step: