private void cmdEnviarActionPerformed( java.awt.event.ActionEvent evt) { // GEN-FIRST:event_cmdEnviarActionPerformed Icon Icon = null; java.awt.event.ActionEvent evt2 = null; int rows = this.tblEnvios.getModel().getRowCount(); if (rows == 0 || this.tblEnvios.getSelectedRow() == -1) { JOptionPane.showMessageDialog( this, "Debe seleccionar/buscar al menos un envío", "Envios", JOptionPane.INFORMATION_MESSAGE, Icon); } else { presenter.getEnviarImpresionHandler().stateChanged(new ChangeEvent(this)); this.cmdCancelarActionPerformed(evt2); JOptionPane.showMessageDialog( this, "Los envios fueron enviados a impresora", "Envios", JOptionPane.INFORMATION_MESSAGE, Icon); } }