Editing columns
javax.swing.table.DefaultTableModel
Override these methods
boolean isCellEditable(int row,int column);
int getColumnCount();
String getColumnName(int c);
For counting your rows
javax.swing.JTable
use this method int getRowCount()
if you want to add any components in to your cell like button or combobox or checkbox
javax.swing.table.TableCellRenderer
override its method