Introduction - If you have any usage issues, please Google them yourself
main TableModel dataModel = new AbstractTableModel() {
public int getColumnCount() { return 10 }
public int getRowCount() { return 10 }
public Object getValueAt(int row, int col) { return new Integer(row*col) }
}
JTable table = new JTable(dataModel)
JScrollPane scrollpane = new JScrollPane(table)