code: private void cmdExecuteActionPerformed(java.awt.event.ActionEvent evt) {
  		releaseResultset();
  		try {
  			if (selectedSource == null) {
  				JOptionPane.showMessageDialog(this, "Please select data source first", "Error", JOptionPane.ERROR_MESSAGE);
  			} else {
  				OBDAProgressMonitor progMonitor = new OBDAProgressMonitor("Executing query...", getRootPane());
  				CountDownLatch latch = new CountDownLatch(1);
  				ExecuteSQLQueryAction action = new ExecuteSQLQueryAction(latch);
  				progMonitor.addProgressListener(action);
  				progMonitor.start();
  				action.run();
  				latch.await();
  				progMonitor.stop();
  				ResultSet set = action.getResult();
  				if (set != null) {
  					ResultSetTableModel model = new ResultSetTableModel(set);
  					tblQueryResult.setModel(model);
  					set.close();
  				}
  			}
  		} catch (Exception e) {
  			OptionPaneUtils.showPrettyMessageDialog(null, e.getMessage(), "Error", JOptionPane.ERROR_MESSAGE);
  			log.error("Error while executing query.", e);
  		}
  	}
docs: </editor-fold>//GEN-END:initComponents