private void logPage(){
		logPane = new JPanel();
		logPane.setBackground(SystemColor.activeCaption);
		logPane.setLayout(null);
		
		JLabel lblTreatmentLog = new JLabel("Treatment Log");
		lblTreatmentLog.setHorizontalAlignment(SwingConstants.CENTER);
		lblTreatmentLog.setFont(new Font("Arial", Font.BOLD, 30));
		lblTreatmentLog.setBounds(349, 20, 286, 47);
		logPane.add(lblTreatmentLog);

		TLTa_table.getSelectionModel().addListSelectionListener(new ListSelectionListener(){
			@Override
			public void valueChanged(ListSelectionEvent arg0) {
				int beforehand=0;
				TLL_model.removeAllElements();
				if (TLTa_table.getSelectedRow()!=-1){
					for (int x=findRec()-1;x>=0;x--){
						beforehand += patient.getTreatmentRec(x).getTreatmentSize();
					}
					for (int i=0; i<patient.getTreatmentRec(findRec()).getTreatment(TLTa_table.getSelectedRow()-beforehand).getPartsSize(); i++){
						TLL_model.add(i, patient.getTreatmentRec(findRec()).getTreatment(TLTa_table.getSelectedRow()-beforehand).getParts(i));
					}
					TLTP_remarks.setText(patient.getTreatmentRec(findRec()).getRemarks());
				}
			}});

		if (patient!=null){
			int rowCount=TLTa_model.getRowCount();
			for(int i=rowCount-1;i>=0;i--){
				TLTa_model.removeRow(i);
			}
			TLTP_remarks.setText(null);
			Patient.addTable(patient, TLTa_model);
		}
	}