Last
revision of this document: |
This lesson is a tutorial to develop an GUI-application with the following purpose:
Read SQL-commands from a text-file which can be chosen via the file-selection-mechanism of Java.
Read the paramater for the connection to the database from a XML-file with a name defined in the application (DB.XML).
Make
a connection to the database and perform the SQL-commands read from
the text-file;
list all commands and the response-messages from
the database in a scrollable text-area.
Allow a printout of all SQL-commands and the response-messages.
The
final GUI of the application will look like this:
Credits:
Individual
credits for each step are listed in the individual document for each
step.
Eclipse installed - and all its prerequisites too ;-).
An
overview of the classes that make up the application can be found in
the document JA_Base02_A - Class-Overview.
Reference
to the individual steps:
Step |
Task |
Design
the elements of the Graphic User Interface (GUI) of the
application. |
|
JS_Base02c, Step2 - Adding an action: selecting the file with the SQL-commands |
|
JS_Base02d, Step 3 - Read parameters for the connection to the database |
|
|
|
|
|
|
|
JS_Base02h, Step 7 - Pack the project into a JAR-file and run it |
|
The
complete Code of all classes. |
Related
Documents: