public void patientPersonalInfo(PatientInfo patient, JTextField[] tfPatient, JTextPane tp, JTextPane[] patientTP) {
        StringBuffer info = new StringBuffer();

        if (tp == null && patientTP == null) {
            tfPatient[2].setText(patient.getBdate().toString());
            tfPatient[3].setText(patient.getSsn().substring(0, 3) + "-" + patient.getSsn().substring(3, 6) + "-" + patient.getSsn().substring(6, 9));
            tfPatient[4].setText(patient.getEmail());
            tfPatient[5].setText(patient.getAddress());
            tfPatient[6].setText(patient.getZip());
            tfPatient[7].setText(patient.getPhone());
            tfPatient[8].setText(patient.getMedcard());
            tfPatient[9].setText(patient.getInsurrance());
        }

        if (tfPatient == null && patientTP == null) {
            info.append("<table>");
            info.append("<tr><td>Patient: <b>");
            info.append(patient.getLname());
            info.append(", " + patient.getFname());
            info.append("</b></td></tr>");
            info.append("<tr><td>Phone: <b>");
            info.append(patient.getPhone() + "</b></td></tr>");
            info.append("<tr><td>Address: <b>");
            info.append(patient.getAddress() + ", " + patient.getZip() + "</b></td></tr>");
            info.append("<tr><td>Med card: <b>");
            info.append(patient.getMedcard() + "</b></td></tr>");
            info.append("<tr><td>Insurance: <b>");
            info.append(patient.getInsurrance() + "</b></td></tr>");
            info.append("<tr><td>SSN: <b>");
            info.append(patient.getSsn() + "</b></td></tr>");
            info.append("<tr><td>E-mail: <b>");
            info.append(patient.getEmail() + "</b></td></tr>");
            info.append("</table>");
            tp.setText(info.toString());
        }

        if (tfPatient == null && tp == null) {

            if (patient.getGmedhistory() != null) {
                patientTP[0].setText("<b><span style='font-size: 16pt'>" + patient.getGmedhistory() +
                        "</span></b><br /><br />");
            }
            if (patient.getIllnesshistory() != null) {
                patientTP[1].setText("<b><span style='font-size: 16pt'>" + patient.getIllnesshistory() +
                        "</span></b><br /><br />");
            }
            if (patient.getMedspechistory() != null) {
                patientTP[2].setText("<b><span style='font-size: 16pt'>" + patient.getMedspechistory() +
                        "</span></b><br /><br />");
            }
        }
    }