/** Creates new form ViewJPanel */ public ViewJPanel(Profile profile, VitalSignHistory vitalSignHistory) { initComponents(); this.profile = profile; this.vitalSignHistory = vitalSignHistory; pNameTextField.setText(profile.getpName()); pIDTextField.setText(profile.getpID()); ageTextField.setText(String.valueOf(profile.getAge())); docNameTextField.setText(profile.getDocName()); pharmacyTextField.setText(profile.getPharmacy()); pNameTextField.disable(); pIDTextField.disable(); ageTextField.disable(); docNameTextField.disable(); pharmacyTextField.disable(); respRateTextField.disable(); heartRateTextField.disable(); bpTextField.disable(); weightTextField.disable(); timeTextField.disable(); populateTable(); }