code: @Override
      public String getColumnName(int column) {
  		try {
  			java.util.List<String> signature = results.getSignature();
  			if (signature != null && column < signature.size()) {
  				return results.getSignature().get(column);
  			} else {
  				return "";
  			}
  		} catch (Exception e) {
  			e.printStackTrace();
  			return "ERROR";
  		}
  	}
docs: This TableModel method returns columns names from the ResultSetMetaData