Index - Advanced Java Fat-Client-Development
|
Last
revision of this document: |
This
document lists all documents that cover advanced know-how to develop
a Fat-Client in Java.
These documents mainly deals with
* the
usage of prepared methods incorporated in the Base-classes or
*
code that makes the GUI cuter and more user-friendly.
Shortcut:This
document is split into two areas:
Step
by step instructions for developing a Fat-Client application with
the sections:
* Preparation,
* Develop
the Start-Frame (Command-Center),
* Develop
a Task-Frame (to handle Business-Tasks) and
* Develop
Business Objects (BO) and Data-Base-Access (DBA) Objects.
Credits:None
for this document; it is just an index of other documents.
To work through this tutorial, the Eclipse workbench with the plugin for the Visual Editor (VE) has to be installed.
Basic
knowledge of Java. This project does not teach the instructions of
Java at all !
If you switch from another object-oriented language
(C++, Pascal, Modula) and you want to go directly to develop code
(instead of tinkering around with theory), please browse at least
through the following tutorials:
* JS_Base01
- HelloWorld.
* JS_Base02
- DataBase-Loader with a GUI.
Before
starting to develop a Fat-Client-Application, you should - at least
- have gained the following knowledge:
* Basic structures of
programming (if, for, while, calling methods of the own class and
passing parameters to them).
* Basic knowledge of object-oriented
programming (create an object, passing parameters).
Additionally
you should be familiar (at least in theory) with the following:
*
Knowledge of GUI-design in Java; I recommend the tutorial JS_Base02
- A DataBase-Loader with a GUI (Graphic User Interface).
*
Basic knowledge about the structure of XML
Step
by step instructions:PreparationThe
application needs some external libraries, either for reading
and processing files with XML-structures or for simplifying the
development.
* The JAR-file for the base-classes from
JavaScout (JSBS.jar
archive) can be downloaded from here.
If
you want to see the code of the JavaScout base-classes, download
the JAR-file JSBS_With_Source.jar.
A more
detailed description how to to this you will find in the document
JS_FC01cb Download
the jar-file for the base-classes.
* The
JAR-file for the DOM (Document Object Model) (jdom.jar)
can be downloaded from http://www.jdom.org/dist/binary.
As
this file is in a compressed format and has to be 'unzipped', a more
detailed description how to do this you will find in the document
Base
lesson 2, step 3: Read parameters for the connection to the
database.
If
your application needs a database-system and you intend to
use MySQL, you need the database-drivers from
http://dev.mysql.com/downloads/connector/j/3.1.html.
As
this file is in a compressed format and has to be 'unzipped', a more
detailed description how to do this you will find in the document
Database
lesson 1: Set up the MySQL database for access by
JAVA-applications.
If you will use the database-system of
another vendor, please refer to the associated documentation
supplied by the vendor.
Move
the downloaded JAR-files to the designated directory;
if you use
Linux, recommended is '/usr/java/j2sdk1.4.2_08/lib/extern'.
The
steps till now have to be done once per machine and all 'Projects'
(of Eclipse) can resort to the preparation made.
The following
steps have to be done for each 'Project'.
Create
a 'Project' within Eclipse.
A more detailled description how to
do this you will find in the document JS_FC01b
– Create a new workspace and the Project in Eclipse.
Integrate
the external libraries (JAR-files) into the 'Build Path' of the
project.
A
more detailled description how to do this you will find in the
document JS_FC01cb
– Download the jar-file for the base-classes.
Please keep in mind, that the referenced document just
describes how to integrate the JavaScout base-classes.
You have
to do the same procedures for the jar-files for the DOM and the
library for the database-system.
Develop
the Start-Frame (Command-Center):|
Task |
Link to document(s) with sample code |
Link to document(s) with detailed description or theory |
|
Mandatory steps
to create the Start-Frame as CommandCenter |
Code
for class JS_ProjAssist_CommandCenter, |
|
|
Final steps to
create the Start-Frame as CommandCenter |
|
Develop
a Task-Frame (to handle Business Tasks):|
Task |
Link to document(s) with sample code |
Link to document(s) with detailed description or theory |
|
Mandatory steps
to create the Task-Frame to maintain data of a Business-Task |
Code
for class JS_ProjAssist_Project, |
|
|
Final steps to
create the Task-Frame to maintain data of a Business-Task |
|
Develop
Business Objects (BO) and Data-Base-Access (DBA) Objects:|
Task |
Link to document(s) with sample code |
Link to document(s) with detailed description or theory |
|
If you are not
familiar with the pattern of DBA-Objects and Business Objects, |
JS_ProjAssist_Project_BO
|
Using
Business Objects to handle data-storage and retrieval, |
|
If you are an
experienced developer of DBA-Objects and Business Objects and you
just need a reference and a checklist, |
JS_ProjAssist_Project_DBA |
Using
Data-Base-Access (DBA) Objects for low level access to
database-tables, |
|
Create Database
and Database-Table(s) |
|
Business
Object, Overview , |
|
Define the
XML-structure with the parameters for connection to the database
and connection to a Java Application Server (JAS) |
|
Using Data-Base-Access (DBA) Objects for low level access to database-tables , |
|
Implement the
code for access to data held on a Java Application Server (JAS) |
|
Using Data-Base-Access (DBA) Objects for low level access to database-tables , |
Index
of advanced topics:|
Document |
Link to detailed description |
|
The
CommandCenter as Start-Frame for an application |
Standard
implementation of the Command Center layout |
|
The Task-Frame
to handle Business-Cases |
Standard GUI-layout-elements for a Start-Frame (implemented in the base-class JSBS_TaskFrame) |
|
Business Objects
to handle the persistance of data |
Business
Object, Overview , |
|
Data-Base-Access(DBA)
Objects to handle the low level access to database-tables |
Using Data-Base-Access (DBA) Objects for low level access to database-tables , |