static int tableNumColumns(JTable table) { ret table.getColumnCount(); }