code: public void close() {
  		try {
  			Statement statement = set.getStatement();
  			if (statement!=null && !statement.isClosed())
  				statement.close();
  			// Normally not necessary (according to the JDBC standard)
  			if (set!=null && !set.isClosed())
  				set.close();
  		} catch (SQLException e) {
  			// NO-OP
  		}
  	}
docs: Call this when done with the table model. It closes the ResultSet and the
  Statement object used to create it.