posted 18 years ago
from the api docs, this would be the relevant constructor
JTable
public JTable(Vector rowData,
Vector columnNames)
Constructs a JTable to display the values in the Vector of Vectors, rowData, with column names, columnNames. The Vectors contained in rowData should contain the values for that row. In other words, the value of the cell at row 1, column 5 can be obtained with the following code:
((Vector)rowData.elementAt(1)).elementAt(5);
Parameters:
rowData - the data for the new table
columnNames - names of each column
[ June 02, 2005: Message edited by: Michael Dunn ]