how to use vectors to implement abstract table models

I am having problems using vectors to implement table models. here is a sample code i used for the getValueAt method

private Vector rowData;

public Object getValueAt(int rowIndex, int columnIndex) {

return ((Vector)rowData.elementAt(rowIndex)).elementAt(columnIndex);

}

. This method implementation seems not to work since it doesn't fill the jtable with values from the database, however , the model works when i use a two dimensional object array. Please help.

[500 byte] By [Morrizlea] at [2007-11-27 4:00:48]
# 1
The DefaultTableModel already does this.
camickra at 2007-7-12 9:05:25 > top of Java-index,Desktop,Core GUI APIs...