import javax.swing.table.*; public class DenLilleTabel extends AbstractTableModel { public int getColumnCount() { return 10; } public int getRowCount() { return 10;} public Object getValueAt(int r, int k) { return new Integer((r+1)*(k+1)); } }