Tutorial: Building an Rogue Wave Server Application > Implementing a Java Component > Building a Client with JavaBeans > Creating the Table
 
Creating the Table
1. Create a new project.
2. Add a new class named MyFrame extending the class ilog.server.jsds.swing.IlsDSJFrame.
In our example, the new class MyFrame displays as a table. This table is filled in with the data from the view specification file you enter as the viewId property. (See “Customizing the Default Data Source Container”..) This is the view specification file you wrote in “Creating the View Specification File”.
3. In your IDE, switch to Design mode to design your frame graphically.
You should see the following result:
Figure 9.1    Designing Class MyFrame
4. Click on the IlsDSJTable icon , add it to your frame, and rename the corresponding variable in IlsDSJTable.
In this application, the MyFrame instance is also used as the data source container for the open view. The IlsDSJTable instance provides a default data source container, a default table data source, a default table adapter, a default table model, a default JTable object, and connects them all together. If you need to customize one or more of these classes for your application (IlsDataSourceContainer, IlsTableDataSource, IlsDSJTableAdapter, DefaultTableModel], you can replace the default instance provided by the class IlsDSJTable with your own instances.
In this example, you will learn how to replace the default data source container, then how to open a table view of a server object.

Version 5.7
Copyright © 2013, Rogue Wave Software, Inc. All Rights Reserved.