public class ArrayTableModel extends TableModel
Constructor and Description |
---|
ArrayTableModel(Object[][] data) |
Modifier and Type | Method and Description |
---|---|
int |
getColumnCount()
Return the number of columns that can be queried.
|
int |
getRowCount()
Return the number of rows that can be queried.
|
Object |
getValue(int row,
int column)
Return the data value to be displayed at a given row and column, which may be null.
|
transpose
public ArrayTableModel(Object[][] data)
public int getRowCount()
TableModel
rowCount-1
inclusive are valid values.getRowCount
in class TableModel
public int getColumnCount()
TableModel
columnCount-1
inclusive are valid values.getColumnCount
in class TableModel
public Object getValue(int row, int column)
TableModel
getValue
in class TableModel