How do I add a vector to JTable and get it to display. What I have tried is not working. I am also interested in other methods I can use to accomplish the same thing but that may also be more visually pleasing to the user.
I tried building the vector and then just adding it to the table. That did not work. The code follows and I thank you for your assistance.
[ June 02, 2005: Message edited by: Al Wells ]
posted 10 years ago
from the api docs, this would be the relevant constructor
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:
Parameters: rowData - the data for the new table columnNames - names of each column [ June 02, 2005: Message edited by: Michael Dunn ]