I have been given the following snippet of code, which is part of a ResultSetModel.java file which is used by a file which uses JDBC/SQL data.
Code:
public String getColumnName (int columnIndex) {
ResultSetMetaData resultSetMetaData = resultSet.getMetaData();
//Put some program code here. (They put this in, not me :))
}
It then tells me to "use one of its methods, so that the above function returns an appropriate heading for each column. "
The GUI columns currently show as the defaults (a-e) and instead I want them to show ComNum, FirstName, Surname, Gender, CountryCode.
Any ideas???
Nerddette