|
Trying Out JGuiGen
| [Previous] [Main] [Next] |
Trying out JGuiGen
| CHECK DATA DICT - Click on the first menu option in the Data Dictionary men - This will access the database you are using an compare the MetaData with the data in the data_dict table. It update the data_dict table and generates an HTML file that documents your tables and shows you any changes that have been made since the last run. It will ask you if you want to Leave the FLAGS. Go ahead and leave them for now. When you are finished you can browse the resulting HTML file is you wish.
|
| EDIT DATA DICT - Choose userlogdata from the top combo box. You will see "**Table Description" in the first field. Click on the "File" tab when "**Table Description" is showing. The screen has several active components that describe options that are available for build the screen (e.g. menus at the top, menus contain Icons, Include a JTable) These will be described in more detail later. For now you can look and see what is there. At the bottom of the screen is a scrolling table that shows all of the columns that are contained in the table. Click on one and the data for that column witll fill the fields in the screen. If you rerun the CHECK options, the documentation, options and notes you enter here will be included in the resulting HTML documentation file. The options on this screen will be discussed later in this help.
|
|
|
Information about the Application to be Created.
Information about One Column in the SQL Table
|
|
| GENERATE APPLICATION - this is where you actually create the application. There are three main options you can run from this menu option.
|
|
|
|
| Model - Click on the MODEL option. This will create a UserlogdataTableModel file. All access to your SQL database goes through this class. The generated java file should be put into a file that is called UserlogdataTableModel.java. Compile this file. Note I do not overwrite your existing file here. This file is used by any screen you create that edits the userlogdata table. If you have done any manual tweaking of the existing file I do not want to overwrite them. (Note, in this case the file already exists. It is used by the UserDemo.)
|
| Order - You can modify the order that columns will be inserted into your final application by choosing the ORDER option, highlighting a column name and clicking on the up or down arrow to move the column name relative to the other names. When you EXIT this screen your sort order is saved to the data_dict table. (Obviously if you are using the database at my site the order will be changed by whoever most recently editing the file.)
|
| Create - Click on this option, choose the default file name (i.e. UserLogData) and click on the Create Java button. A few seconds later the application will let you view the created code. There are five java files created here. Create files with different names if you want to save your existing code. This option creates four files.
|
| A) UserLogData.java - compile this and run (standalone or from the main JGuiGen application). This gives you a working application.
|
|
|
| B) UserLogDataBuildLayout.java - You can edit this file to modify the rowlayout manager calls to create a final product. By default this file will not be overwritten when you rerun the Create process. The revised code will be inserted into the java file, but will be commented out. You can find the code relevant to modified or added columns and manually insert them in the appropriate spot.
|
|
|
| C) UserLogDataExtra.java - this is a small demo class that is run when you click on the Extra button the generated application. You can enhance this file to carry out special tasks related to your SQL table. This file will never be overwritten once it exists.
|
|
|
| D) UserlogdataAbstractTestCase.java - This call up a copy of the JPanel, tries to delete one row (with an given ID that is designaged as the Testing ID.) It then runs the last file.
|
|
|
| E) UserlogdataTestCase.java. This applicaiton runs a series of JUnit (jfcUnit) tests against your application. It starts with an empty screen, loads each component with a unique value, saves the row (using the TestingID), recalls the row and compares each component with the data that originally was placed into it. It then clears the screen (prepares it for an Add) and checks that each component is actually empty or has the correct default value.
|
|
|
| INTERNATIONALIZATION (I18N) - All of the prompts, message, (and even the comments in the code) are internationalized. This means that they can be translated into different languages. The prompts and what the user actually sees is stored in a table. You can edit these using the menu options. You need to write these data our before the application you can generated can find it. This uses properties files. One text file is created for each language you have translated you application into. One nice thing here. Once one JGuiGen application has been translated most of the work for additional applications will already have been done. The tools tips for the menu options, and warning messages, the error messages, etc. are common to all generated applications.
|
|
|