A RecordListTablePane presents the contents of a server file in a table. Each row in the table displays a record from the file and each column displays a field.
To use a RecordListTablePane, set the system and fileName properties. Set these properties by using the constructor or the setSystem() and setFileName() methods. Use load() to retrieve the file contents and present the records in the table. When the file contents are no longer needed, call close() to ensure that the file is closed.
The following example creates a RecordListTablePane object and adds it to a frame:
// Create an RecordListTablePane // object. Assume that "system" is // an AS400 object that is created // and initialized elsewhere. RecordListTablePane tablePane = new RecordListTablePane (system, "/QSYS.LIB/QIWS.LIB/QCUSTCDT.FILE"); // Load the file contents. tablePane.load (); // Add the table pane to a frame. // Assume that "frame" is a JFrame // created elsewhere. frame.getContentPane ().add (tablePane);