public void sendQuery(String query) {

		if (isCurrentQuery()) {
			currentQuery.close();
			currentQuery = null;
		}

		tableModel.setColumnCount(0);
		tableModel.getDataVector().removeAllElements();
		tableModel.fireTableDataChanged();

		currentQuery = client.query(query);
		if (isCurrentQuery()) {
			currentQuery.printResult(tableModel);
		} else {
			JOptionPane.showMessageDialog(null, "Invalid query : " + query,
					"Error", JOptionPane.ERROR_MESSAGE);
		}
	}