> List of tutorials


Fat-Client-Development - Create and code the class for the 'Task-Frame' to maintain 'Projects'

* 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 linked within other documents of www.javascout.biz.

  • If this document or other documents of this web-site (www.javascout.biz) infringes your rights or you think that that rights of others (third parties) 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-06-14

Generally, an 'Application' contains of one 'Start-Frame' – which contains mainly code to perform the technical backgraound like connecting to a database – and serveral 'Task-Frame's.
Aim of a 'Task-Frame' is, to process 'Business-Data'; e.g. the maintenance of data the 'Application' is designed for.

In this step, a frame will be created that allows the maintenance (create, change, delete data) of 'Projects'.
A 'Project' is a group of error messages that belong to a single 'Application'.
An 'Application' is an entity of frames (usually packed within one JAR-file) that belong together.

The aim of this tutorial (the whole set of documents – not just this document) is, to create an 'Application' to maintain Error-Messages for several 'Projects' – i.e. 'Applications' that you might create for the use of the organisation you are working for or 'Applications' you create by the order of one of your clients.

In fact, at the time of writing this documentation this documented 'Application' was already extended to maintain the language-dependant text-elements too.

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:

A reference of the elements for the GUI in JAVA can be found under http://java.sun.com/docs/books/tutorial/uiswing/layout/gridbag.html .

Prerequisites:

Create the base-class for the Task-Frame (with no code for now):

Code that can be inherited

This class contains code for variables and methods that can be reused for all individual developments.
The class created now can the be inhereted (therefore it is called base-class) by 'Task-Frames' of individual projects.

top.

Create and code the Class for the GUI to maintain 'Projects':

The procedure to create a class for the GUI was fully documented at the step JS_FC01d - Create and code the class for the GUI..
To shorten this document, screenshots are reduced.
If you feel insecure what has to be done and need a more detailed explanation please refer to JS_FC01d - Create and code the class for the GUI.

As the detailed way to create a GUI was already shown in JS_FC01d – Create and code the class for the GUI,
only new types of GUI-elements (e.g. List-Boxes) are discussed in detail.

For a more detailed explanation how to develop a GUI, please refer to the tutorial
JS_Base02 - DataBase-Loader with a GUI
.

The complete code for this class is in JS_ErrDB_Project.


top.

React to a button-click:

The code for reacting to a button-click was described in detail in the tutorial Base lesson 2, step 2: Adding an action: selecting the file with the SQL-commands,
Therefore, the following description contains only catchwords what part of code has to be added.
The new code is placed into the classes JS_ErrDB_CommandCenter and JS_ErrDB_CommandCenter__ActionHandler.

top.

Open the Task-Frame:

top.

Next Steps: