> List of tutorials


Fat-Client-Development - Create and code the class for the GUI

* 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-04

This step of the tutorial tells how to create a Graphical User Interface (GUI). It will just contain one button.
In a later step, this button will be used to create another frame which allows the maintenance (create, change, delete data) for the error-messages.

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 and code the Class for the GUI:

The code responsible for the GUI-part is the class we start with.
N.B.:
1.) To separate the code for actions and for handling events (explanation follows later) two more classes are created later.
2.) The Visual Editor offers several templates for GUI-Styles. To explain the creation of each GUI-element this element is developed 'from scratch' without selecting a template.

In the following explanations all new code is written in bold letters.
Code generated by the template or entered in previous steps (old code) is in normal.
Larger blocks of old code may be skipped in this documentation.

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

The entered text can be saved by clicking the right mouse-button and selecting Save  from the context menu.


top.

Next Steps: