Use to create a new master/ detail form that displays master-detail data from a database.
You open the New Master/Detail Form wizard by opening the New File wizard and selecting the Swing GUI Forms category and the Master/Detail Sample Form file type.
In the Detail Options page, you have to set the following properties:
Element | Description |
---|---|
Create Detail Area as |
Specifies how the detailed data is presented in the form. The top of the form displays a table.
Note: A graphic to the right shows how the generated form will look. To specify how details are displayed in the form select one of the following options: |
Textfields |
When selected, the details are displayed as a label and a text field. |
Table |
When selected, the details are displayed as a table. |
Available Fields/Available Columns |
Contains the list of database fields/columns that are not included into the form you create. |
Fields to Include/Columns to Include |
Contains the list of database fields/columns that are included into the form you create. By default all fields/columns are listed here. Select a field/column and click the left arrow button, to remove the field/column you select from the right pane. You can use the arrow buttons to add or remove fields/columns from the lists.
Note: Use the Up and Down buttons to place the elements in the required order in the list. |
Click Finish to get a form with the selected master-detail data from a database generated in the IDE.
Related Topics
Developing Applications with NetBeans IDE,
Developing Applications with NetBeans IDE,
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |