⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pnl_patient_personal.java

📁 This is a Rural Dispensary Management System developed in Java Swing. Liquid Aqua look and feel had
💻 JAVA
字号:
package patient;


import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;

import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;

public class Pnl_patient_personal extends JPanel {

	/**
	 *
	 */
	private static final long serialVersionUID = 1L;
	public JLabel lbl_patient_title = null;
	public JTabbedPane tbpn_patient = null;
	public JPanel pnl_inpatient = null;
	public JPanel pnl_outpatient = null;
	public JPanel pnl_emergency = null;
	public pnl_inpatient inpatient=null;
	public pnl_inpatient1 inpatient1=null;
	public Pnl_buttons_in patient_personal_buttons_in=null;
	public Pnl_outpatient1 outpatient=null;
	public Pnl_buttons_out patient_personal_buttons_out=null;
	public pnl_emergency1 emergency=null;
	public Pnl_emergency_concerned concerned_emergency=null;
	public Pnl_buttons_emergency patient_personal_buttons_emergency=null;
	
	/**
	 * This method initializes tbpn_patient
	 *
	 * @return javax.swing.JTabbedPane
	 */
	public JTabbedPane getTbpn_patient() {
		if (tbpn_patient == null) {
			tbpn_patient = new JTabbedPane();
			tbpn_patient.setPreferredSize(new java.awt.Dimension(890,790));
			tbpn_patient.addTab("In Patients", null, getPnl_inpatient(), null);
			tbpn_patient.addTab("Out Patients", null, getPnl_outpatient(), null);
			tbpn_patient.addTab("Emergency Patients", null, getPnl_emergency(), null);
		}
		return tbpn_patient;
	}

	/**
	 * This method initializes pnl_inpatient
	 *
	 * @return javax.swing.JPanel
	 */
	public JPanel getPnl_inpatient() {
		if (pnl_inpatient == null) {
			pnl_inpatient = new JPanel();
			pnl_inpatient.setLayout(new GridBagLayout());
			pnl_inpatient.setPreferredSize(new java.awt.Dimension(700,600));

			inpatient= new pnl_inpatient();
			inpatient.setPreferredSize(new java.awt.Dimension(300,200));
			GridBagConstraints gbc_inpatient  =new GridBagConstraints();
//			final String a = inpatient.tf_caseid.getText();
			gbc_inpatient.weightx = 1.0D;
			gbc_inpatient.weighty = 1.0D;
			gbc_inpatient.fill = java.awt.GridBagConstraints.BOTH ;
			gbc_inpatient.gridx = 0;
			gbc_inpatient.gridy = 0;
			gbc_inpatient.insets = new java.awt.Insets(5,5,0,0);
			gbc_inpatient.gridx = 0;
			gbc_inpatient.gridy = 0;
			gbc_inpatient.anchor = GridBagConstraints.NORTHWEST;
			pnl_inpatient.add(inpatient, gbc_inpatient);
		

			
			inpatient1=new pnl_inpatient1();
			inpatient1.setPreferredSize(new java.awt.Dimension(300,200));
			GridBagConstraints gbc_inpatient1  =new GridBagConstraints();
			gbc_inpatient1.weightx = 1.0D;
			gbc_inpatient1.weighty = 1.0D;
			gbc_inpatient1.gridx=1;
			gbc_inpatient1.gridy=0;
			gbc_inpatient1.fill = java.awt.GridBagConstraints.BOTH;
			gbc_inpatient1.insets = new java.awt.Insets(5,5,0,0);
			gbc_inpatient1.gridx = 1;
			gbc_inpatient1.gridy = 0;
			gbc_inpatient1.anchor = GridBagConstraints.NORTHWEST;
		
			pnl_inpatient.add(inpatient1, gbc_inpatient1);
	
			patient_personal_buttons_in=new Pnl_buttons_in();
			GridBagConstraints gbc_patient_pers_buttons_in=new GridBagConstraints();
			gbc_patient_pers_buttons_in.weightx = 1.0D;
			gbc_patient_pers_buttons_in.weighty = 1.0D;
			gbc_patient_pers_buttons_in.gridx=0;
			gbc_patient_pers_buttons_in.gridy=1;
			gbc_patient_pers_buttons_in.fill = java.awt.GridBagConstraints.BOTH;
			gbc_patient_pers_buttons_in.anchor = GridBagConstraints.CENTER;
			pnl_inpatient.add(patient_personal_buttons_in, gbc_patient_pers_buttons_in);
			
			pnl_inpatient.updateUI();
						
		}
		return pnl_inpatient;
	}
	
	

	/**
	 * This method initializes pnl_outpatient
	 *
	 * @return javax.swing.JPanel
	 */
	public JPanel getPnl_outpatient() {
		if (pnl_outpatient == null) {
			pnl_outpatient = new JPanel();
			pnl_outpatient.setLayout(new GridBagLayout());
			pnl_outpatient.setPreferredSize(new java.awt.Dimension(700,600));
			
			outpatient=new Pnl_outpatient1();
			outpatient.setPreferredSize(new java.awt.Dimension(300,200));
			GridBagConstraints gbc_outpatient  =new GridBagConstraints();
			gbc_outpatient.weightx = 1.0D;
			gbc_outpatient.weighty = 1.0D;
			gbc_outpatient.fill = java.awt.GridBagConstraints.BOTH;
			gbc_outpatient.insets = new java.awt.Insets(5,5,0,0);
			gbc_outpatient.gridx = 0;
			gbc_outpatient.gridy = 0;
			gbc_outpatient.anchor = GridBagConstraints.NORTHWEST;
			pnl_outpatient.add(outpatient, gbc_outpatient);
			
			patient_personal_buttons_out=new Pnl_buttons_out();
			GridBagConstraints gbc_patient_pers_buttons_out=new GridBagConstraints();
			gbc_patient_pers_buttons_out.weightx = 1.0D;
			gbc_patient_pers_buttons_out.weighty = 1.0D;
			gbc_patient_pers_buttons_out.gridx=0;
			gbc_patient_pers_buttons_out.gridy=1;
			gbc_patient_pers_buttons_out.fill = java.awt.GridBagConstraints.BOTH;
			gbc_patient_pers_buttons_out.anchor = GridBagConstraints.CENTER;
			pnl_outpatient.add(patient_personal_buttons_out, gbc_patient_pers_buttons_out);
			
			pnl_outpatient.updateUI();
						
		}
		return pnl_outpatient;
	}


	/**
	 * This method initializes pnl_emergency
	 *
	 * @return javax.swing.JPanel
	 */
	public JPanel getPnl_emergency() {
		if (pnl_emergency == null) {
			pnl_emergency = new JPanel();
			pnl_emergency.setLayout(new GridBagLayout());
			pnl_emergency.setPreferredSize(new java.awt.Dimension(700,600));
			
			emergency=new pnl_emergency1();
			emergency.setPreferredSize(new java.awt.Dimension(300,200));
			GridBagConstraints gbc_emergency  =new GridBagConstraints();
			gbc_emergency.weightx = 1.0D;
			gbc_emergency.weighty = 1.0D;
			gbc_emergency.gridx=0;
			gbc_emergency.gridy=0;
			gbc_emergency.fill = java.awt.GridBagConstraints.BOTH;
			gbc_emergency.insets = new java.awt.Insets(5,5,0,0);
			gbc_emergency.anchor = GridBagConstraints.NORTHWEST;
			pnl_emergency.add(emergency, gbc_emergency);
			
			concerned_emergency=new Pnl_emergency_concerned();
			emergency.setPreferredSize(new java.awt.Dimension(300,200));
			GridBagConstraints gbc_concerned_emergency  =new GridBagConstraints();
			gbc_concerned_emergency.weightx = 1.0D;
			gbc_concerned_emergency.weighty = 0.0D;
			gbc_concerned_emergency.gridx=1;
			gbc_concerned_emergency.gridy=0;
			gbc_concerned_emergency.fill = java.awt.GridBagConstraints.BOTH;
			gbc_concerned_emergency.insets = new java.awt.Insets(5,5,0,0);
			gbc_concerned_emergency.anchor = GridBagConstraints.NORTHWEST;
			pnl_emergency.add(concerned_emergency, gbc_concerned_emergency);
			
			patient_personal_buttons_emergency=new Pnl_buttons_emergency();
			GridBagConstraints gbc_patient_pers_buttons_emergency=new GridBagConstraints();
			gbc_patient_pers_buttons_emergency.weightx = 1.0D;
			gbc_patient_pers_buttons_emergency.weighty = 1.0D;
			gbc_patient_pers_buttons_emergency.gridx=0;
			gbc_patient_pers_buttons_emergency.gridy=1;
			gbc_patient_pers_buttons_emergency.fill = java.awt.GridBagConstraints.BOTH;
			gbc_patient_pers_buttons_emergency.anchor = GridBagConstraints.CENTER;
			pnl_emergency.add(patient_personal_buttons_emergency, gbc_patient_pers_buttons_emergency);
			
			pnl_emergency.updateUI();
		}
		return pnl_emergency;
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

	/**
	 * This is the default constructor
	 */
	public Pnl_patient_personal() {
		super();
		initialize();
	}

	/**
	 * This method initializes this
	 *
	 * @return void
	 */
	public void initialize() {
		GridBagConstraints gridBagConstraints1 = new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.BOTH, new Insets(5, 0, 0, 0), 0, 0);
		gridBagConstraints1.weightx = 1.0D;
		gridBagConstraints1.insets = new java.awt.Insets(5,5,0,0);
		gridBagConstraints1.gridx = 0;
		gridBagConstraints1.gridy = 1;
		gridBagConstraints1.weighty = 1.0D;
		GridBagConstraints gridBagConstraints2 = new GridBagConstraints();
		gridBagConstraints2.fill = java.awt.GridBagConstraints.BOTH;
		gridBagConstraints2.gridy = 1;
		gridBagConstraints2.weightx = 1.0;
		gridBagConstraints2.weighty = 1.0;
		gridBagConstraints2.anchor = java.awt.GridBagConstraints.NORTHWEST;
		gridBagConstraints2.insets = new java.awt.Insets(5,5,0,0);
		gridBagConstraints2.gridx = 0;
		GridBagConstraints gridBagConstraints = new GridBagConstraints();
		gridBagConstraints.insets = new java.awt.Insets(5,5,0,0);
		gridBagConstraints.gridy = 0;
		gridBagConstraints.gridx = 0;
		lbl_patient_title = new JLabel();
		lbl_patient_title.setText("Patient's Personal Information");
		lbl_patient_title.setForeground(java.awt.Color.black);
		lbl_patient_title.setEnabled(false);
		lbl_patient_title.setFont(new java.awt.Font("Monotype Corsiva", java.awt.Font.BOLD | java.awt.Font.ITALIC, 36));
		this.setLayout(new GridBagLayout());
		this.setSize(895, 795);
		this.setPreferredSize(new java.awt.Dimension(895,795));
		this.add(lbl_patient_title, gridBagConstraints);
		this.add(getTbpn_patient(), gridBagConstraints1);
	}

}  //  @jve:decl-index=0:visual-constraint="10,10"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -