예제 #1
0
 public permisos lista(String id) {
   Usuario u = cliente.Cliente.conectarU();
   try {
     listadoPermisos = u.lista(id);
   } catch (RemoteException ex) {
     Logger.getLogger(datos.class.getName()).log(Level.SEVERE, null, ex);
   }
   return listadoPermisos;
 }
예제 #2
0
 private void jButton1ActionPerformed(
     java.awt.event.ActionEvent evt) { // GEN-FIRST:event_jButton1ActionPerformed
   try {
     Usuario conectarU = cliente.Cliente.conectarU();
     boolean editarFormato =
         conectarU.editarFormato(
             jComboBox1.getSelectedIndex() == 0 ? 1 : 2,
             new datosFormatos(
                 this.jTextField1.getText(),
                 this.jTextField2.getText(),
                 this.jTextArea1.getText()));
     if (editarFormato) {
       JOptionPane.showMessageDialog(null, "Hecho");
     } else {
       JOptionPane.showMessageDialog(null, "Ocurrió un error");
     }
   } catch (RemoteException ex) {
     Logger.getLogger(DatosDeFormatos.class.getName()).log(Level.SEVERE, null, ex);
   }
 } // GEN-LAST:event_jButton1ActionPerformed