@Override public void queryExecuted(QueryExecuteEvent evt){
  ResultSetHelper helper;
  if (evt.failed()) {
    m_InfoPanel.append("Query:" + evt.getQuery(),"error_small.gif");
    m_InfoPanel.append("exception: " + evt.getException(),"error_small.gif");
  }
 else {
    m_InfoPanel.append("Query: " + evt.getQuery(),"information_small.gif");
    try {
      if (evt.hasResult()) {
        helper=new ResultSetHelper(evt.getResultSet());
        if ((evt.getMaxRows() > 0) && (helper.getRowCount() >= evt.getMaxRows())) {
          m_InfoPanel.append(helper.getRowCount() + " rows selected (" + evt.getMaxRows()+ " displayed).","information_small.gif");
        }
 else         if (helper.getRowCount() == -1) {
          m_InfoPanel.append("Unknown number of rows selected (due to JDBC driver restrictions).","information_small.gif");
        }
 else {
          m_InfoPanel.append(helper.getRowCount() + " rows selected.","information_small.gif");
        }
      }
      loadHistory(false);
      m_History.setProperty(QueryPanel.MAX_ROWS,Integer.toString(evt.getMaxRows()));
      saveHistory();
    }
 catch (    Exception e) {
      e.printStackTrace();
    }
  }
}

@ Override public void queryExecuted ( QueryExecuteEvent evt ) { ResultSetHelper helper ; if ( evt . failed ( ) ) { m_InfoPanel . append ( "Query:" + evt . getQuery ( ) , "error_small.gif" ) ; m_InfoPanel . append ( "exception: " + evt . getException ( ) , "error_small.gif" ) ; } else { m_InfoPanel . append ( "Query: " + evt . getQuery ( ) , "information_small.gif" ) ; try { if ( evt . hasResult ( ) ) { helper = new ResultSetHelper ( evt . getResultSet ( ) ) ; if ( ( evt . getMaxRows ( ) > 0 ) && ( helper . getRowCount ( ) >= evt . getMaxRows ( ) ) ) { m_InfoPanel . append ( helper . getRowCount ( ) + " rows selected (" + evt . getMaxRows ( ) + " displayed)." , "information_small.gif" ) ; } else if ( helper . getRowCount ( ) == - 1 ) { m_InfoPanel . append ( "Unknown number of rows selected (due to JDBC driver restrictions)." , "information_small.gif" ) ; } else { m_InfoPanel . append ( helper . getRowCount ( ) + " rows selected." , "information_small.gif" ) ; } } loadHistory ( false ) ; m_History . setProperty ( QueryPanel . MAX_ROWS , Integer . toString ( evt . getMaxRows ( ) ) ) ; saveHistory ( ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } } }
this method gets called when a query has been executed .
