/** * Retrieve the name of every column in the table with the given index. * Tables are indexed from 0 to <code>{@link #getTableCount()} - 1</code>. */ public String[] getColumnNames(int tableIndex) { String[] columnNames = new String[columns[tableIndex].length]; for (int i=0; i<columnNames.length; i++) { columnNames[i] = columns[tableIndex][i].getName(); } return columnNames; }