public void printResult(DefaultTableModel table) {
		
		count = 100;
		try {
			while ((count > 0) && result.next()) {
				count--;
				Vector<String> data = new Vector<String>();
				for (int i = 1; i <= resultMetaData.getColumnCount(); i++) {
					Object res = result.getObject(i);
					data.add( res == null ? "NULL" : res.toString());
				}
				dataList.add(data);
			}
			
			table.setDataVector(dataList, header);
			
			if (count > 0) {
				close();
			}
		} catch (SQLException e) {
			System.err.println("Error when trying to print the result of " + query);
		}
	}