public static GuiGestionarPersona getInstance(Persona p, int id) {
        id_padre = id;
        if (myInstance == null) {
            myInstance = new GuiGestionarPersona();
        }
        ArrayList<Titulo> titulos = ManagerTitulo.listarTitulo();
        myInstance.jComboBox1.removeAllItems();
        for (int i = 0; i < titulos.size(); i++) {
            myInstance.jComboBox1.addItem(titulos.get(i).getAbrev());
        }
        if (p == null) {
            myInstance.setTitle("REGISTRANDO PERSONA");
            myInstance.jPanel2.setEnabled(false);
            myInstance.jButton1.setEnabled(false);
            myInstance.jComboBox2.setEnabled(false);
            myInstance.jButton2.setEnabled(false);
            myInstance.jTextField1.setEditable(true);
        } else {
            myInstance.setTitle("ACTUALIZANDO PERSONA");
            myInstance.jPanel2.setEnabled(true);
            myInstance.jButton1.setEnabled(true);
            myInstance.jComboBox2.setEnabled(true);
            myInstance.jButton2.setEnabled(true);
            myInstance.jTextField1.setText(p.getCi());
            myInstance.jTextField3.setText(p.getNombre());
            myInstance.jTextField4.setText(p.getApellidoPaterno());
            myInstance.jTextField5.setText(p.getApellidoMaterno());
            myInstance.jTextField6.setText(p.getDireccion());
            myInstance.jComboBox1.setSelectedItem(p.getTitulo().getAbrev());
            myInstance.jComboBox2.removeAllItems();
            myInstance.jTextField1.setEditable(false);
            for (int i = 0; i < p.getTelf().getTelf().size(); i++) {
                myInstance.jComboBox2.addItem(p.getTelf().getTelf().get(i).toString());
            }
        }
        actualizarTablas();
        persona = p;
        return myInstance;
    }