In the New Java Application dialog box, enter the project name and the directory To add a frame, select File - New File - Java GUI Forms - JFrame Form.

J.E.D.I From this dialog box, select General - Java Application. Click Next and the New Java Application dialog box will appear.

3. In the New Java Application dialog box, enter the project name and the directory

that will be used to keep all project-related files. Figure 5.5 shows an example, the project name is AthleteDB and the directory is homenoelTestHDJStudio. Software Engineering 236 Figure 5.5 New Java Application Dialog Box J.E.D.I 4. Java Studio Enterprise will present the default setup as shown in Figure 5.6. Software Engineering 237 Figure 5.6 Default Set-up Screen J.E.D.I

5. To add a frame, select File - New File - Java GUI Forms - JFrame Form.

Figure 5.7 and Figure 5.8 show how to do this. Software Engineering 238 Figure 5.7 Selecting New File option Figure 5.8 Selection Java GUI Forms and JFrame Form J.E.D.I 6. Click Next. The New Jframe Form dialog box as shown in Figure 5.9 will appear. Enter the class name. In this case, the name of the screen is AForm Then, click Finish. Software Engineering 239 Figure 5.9 New JFrame Form Dialog Box J.E.D.I 7. The Design View initialized and is shown in Figure 5.10. 8. The Palette Manager is located at the top right window and below it is the Component Properties. The Palette Manager contains the Swing, AWT, Layouts, and Beans. Software Engineering 240 Figure 5.10 Design View Initialization Figure 5.11 Palette Manager J.E.D.I 9. To be able to use the Palette Manager by drag-n-drop style to the Design window, make sure that the Selection Mode is enabled. It is the first icon beside the Design Tab. Figure 5.12 shows the Design Tab. The selection button should be highlighted; it is the button with the arrow and box. 10.The Component Inspector consists of an overview of the GUIs added to the Frame. Figure 5.13 shows the Component Inspector. It is part of the window labeled as Inspector. A Tree View of the components is used to show the list of componets. Software Engineering 241 Figure 5.12 Selection Model Enabled Figure 5.13 Component Inspector J.E.D.I 11.To build or save the project, click Build - Build Main Project. This is shown by Figure 5.14. Software Engineering 242 Figure 5.14 Build Option J.E.D.I The Build Output is generated at the Output Tab at the bottom of the program. This is shown in Figure 5.15. Software Engineering 243 Figure 5.15 Build Output J.E.D.I To run the specific program, click Run - Run File - Run Aform.java. This is shown in Figure 5.16. Software Engineering 244 Figure 5.16 Run Option J.E.D.I Drafting the Sample Athlete Form Application 1. Right-click the JFrame in the Component Inspector. It will open a menu containing its layout as well as the other properties. The GridLayout is selected as default. Look at Figure 5.17 to see how this is done. 2. Looking at the Properties Tab below the Palette Manager, the properties for GridLayout is illustrated and it can be modified as well. Figure 5.18 shows an instance of the Properties Tab. Software Engineering 245 Figure 5.17 Setting the Layout Figure 5.18 Properties Tab J.E.D.I 3. To add a panel, right-click the name of the frame in the Component Inspector window. In this example, it is Jframe1. Click Add from Palette - AWT - Panel. Figure 5.19 shows this. Software Engineering 246 Figure 5.19 Adding a Panel J.E.D.I To rename the panel, right-click on the name of the panel in the Component Inspector window. Select Rename. Enter the new name of the panel. Figure 5.20 shows this. Software Engineering 247 Figure 5.20 Renaming a Panel J.E.D.I

4. Add Labels by DragNDrop style. Click the Selection Mode icon and the Label icon.