# New Master/Detail Form Wizard: Master Table

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 Master Table page, you must set the following properties:

Element | Description
--- | ---
Database Connection | Specifies connection information for the database from which you want to capture the table (i.e., the location of the database, which driver to use, the username and password information). Either choose an existing database connection, or provide details for creating a new connection to a specific database. Note: By default, an APP database sample is configured when you open the IDE.
Database Table | Specifies the table of the database that you want to display master-detail data from.
Available Columns | Contains the list of database columns that are not included into the table you create.
Columns To Include | Contains the list of database columns that are included into the table you create. By default all columns are listed here. Select a column and click the left arrow button, to remove the column you select from the right pane. You can use the arrow buttons to add or remove columns from the lists. Note: Use the Up and Down buttons to place the elements in the required order in the list.

Click Next to confirm the columns selection and specify the detail options for the form you want to create.

Related Topics

Developing Applications with NetBeans IDE,

Developing Applications with NetBeans IDE,

Copyright © 2016, Oracle and/or its affiliates. All rights reserved.