示例#1
0
 private void btnnuevoActionPerformed(
     java.awt.event.ActionEvent evt) { // GEN-FIRST:event_btnnuevoActionPerformed
   FIMatricula.idalu = 0;
   modif = false;
   FIMatricula f = new FIMatricula();
   MDI.pfondo.add(f);
   MDI.Centrar(MDI.pfondo, f);
   f.toFront();
   f.setVisible(true);
   HabilitarBotones(true, false, false, true);
 } // GEN-LAST:event_btnnuevoActionPerformed
示例#2
0
 private void btnmodificarActionPerformed(
     java.awt.event.ActionEvent evt) { // GEN-FIRST:event_btnmodificarActionPerformed
   try {
     modif = true;
     FIMatricula.idmatricula =
         Integer.parseInt(dtm.getValueAt(jTable1.getSelectedRow(), 0).toString());
     FIMatricula.idalu = Integer.parseInt(dtm.getValueAt(jTable1.getSelectedRow(), 1).toString());
     FIMatricula.nomalu = dtm.getValueAt(jTable1.getSelectedRow(), 2).toString();
     FIMatricula.nivel = dtm.getValueAt(jTable1.getSelectedRow(), 3).toString();
     FIMatricula f = new FIMatricula();
     MDI.pfondo.add(f);
     MDI.Centrar(MDI.pfondo, f);
     f.toFront();
     f.setVisible(true);
     HabilitarBotones(true, false, false, true);
   } catch (Exception e) {
     JOptionPane.showMessageDialog(rootPane, e.toString());
   }
 } // GEN-LAST:event_btnmodificarActionPerformed