![]() |
![]() |
![]() |
![]() |
Create a more complex database interface
What if you want to see multiple rows of the results at the same time? The next section of the tutorial will show you how to do this.
Add more elements to the layout
First we will add new elements to your existing layout.
- Select the border layout by choosing it in the parts list box in the composer.
- Click on "show empty panels" to show the empty spaces in it.
- Choose "Listbox" from the Basic parts page of the Object Palette.
- Click once in the "West" space of the border layout to insert the Listbox into your project.
- Change the Listbox's Object name to "listOfDescriptions".
- Remove all text in the "ListBox items" area.
- Choose "Scroll" from the Swing 2 page and click once in the "Center" space of the border layout.
- Choose "Table" from the Swing 2 page and click once in the "Viewport" space in the scrollpane.
- Change the Table's Object name to "jTable".
- Choose "hide all empty panels" from the parts menu to hide the empty parts of the border layout.
Now the layout has been created, and we are ready to make these new parts work with the database.
Data Representations, Inc. http://www.datarepresentations.com support@datarepresentations.com sales@datarepresentations.com |
![]() |
![]() |
![]() |
![]() |