*/
protected void memoKeyReleased(KeyEvent evt) {
if (evt.getKeyCode() == KeyEvent.VK_F9) {
try {
Runner runner = new Runner();
runner.run(conexao, memo.getSelectedText() != null ?
memo .getSelectedText() : memo.getText());
if (runner.getResultType() == ResultType.rtResultSet) {
ModeloDeTabela modelo = new TabelaRolanteModelo(runner.getResultSet()); // defino o modelo na tabela
grid.setModel(modelo);
} else {
JOptionPane.showMessageDialog(this, "Ok, " + runner.getCount() + " registros afetados");
}
} catch (Exception e) {
JOptionPane.showMessageDialog(this, e.getMessage());
}