private void btnGuardarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnGuardarActionPerformed

        //codigo guardar
        if (principal != null) {
            if (fichero == null) {
                guardarComo();
            } else {
                guardar();
            }
        }
    }//GEN-LAST:event_btnGuardarActionPerformed