static int tableNumColumns(final JTable table) { ret swing(func -> int { table.getColumnCount() }); }