예제 #1
0
 private void tblPesquisaMouseClicked(
     java.awt.event.MouseEvent evt) { // GEN-FIRST:event_tblPesquisaMouseClicked
   if (evt.getClickCount() > 1) {
     JTable target = (JTable) evt.getSource();
     if (itmNovo.isVisible())
       controller.abrirJanelaCadastro((Long) modelo.getValueAt(target.getSelectedRow(), 5));
     else controller.criarReceita((Long) modelo.getValueAt(tblPesquisa.getSelectedRow(), 5));
   }
 } // GEN-LAST:event_tblPesquisaMouseClicked
예제 #2
0
 private void itmNovoMouseClicked(
     java.awt.event.MouseEvent evt) { // GEN-FIRST:event_itmNovoMouseClicked
   controller.abrirJanelaCadastro();
 } // GEN-LAST:event_itmNovoMouseClicked