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

📄 empinfo.java

📁 完整的JAVA工程
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
		P1.add(jLabel4);
		P1.add(eSex);
		P1.add(L4);
		P1.add(jLabel5);
		P1.add(eNation);
		P1.add(L5);
		P1.add(jLabel6);
		P1.add(eRegion);
		P1.add(L6);
		P1.add(jLabel7);
		P1.add(eEducation);
		P1.add(jLabel8);
		P1.add(eSpecialty);
		P1.add(jLabel9);
		P1.add(eBirthday);
		P1.add(L9);
		P1.add(jLabel10);
		P1.add(eGstatus);
		P1.add(jLabel11);
		P1.add(eMarriage);
		P1.add(jLabel12);
		P1.add(eIdcard);
		P1.add(jLabel13);
		P1.add(eHlocation);
		P1.add(L13);
		P1.add(jLabel14);
		P1.add(eCityhk);
		P1.add(jLabel15);
		P1.add(eCaddress);
		P1.add(jLabel16);
		P1.add(ePostcode);
		P1.add(jLabel17);
		P1.add(eMobilephone);
		P1.add(jLabel18);
		P1.add(eHomephone);
		P1.add(L18);
		P1.add(jLabel19);
		P1.add(eEmail);
		P1.add(jLabel20);
		P1.add(eCategory);
		P1.add(jLabel21);
		P1.add(eJobdate);
		P1.add(L21);
		P1.add(jLabel22);
		P1.add(eContractdate);
		P1.add(jLabel23);
		P1.add(eZzdate);
		P1.add(jLabel24);
		P1.add(eXqdate);
		P1.add(jLabel25);
		P1.add(eFilelocation);
		P1.add(addpic);
		P1.add(addInfo1);
		P1.add(clearInfo1);
		P1.add(L25);
		
		//第二页布局
		P2.setLayout(null);
		jLabel26.setFont(new Font("Dialog",0,12));
		jLabel27.setFont(new Font("Dialog",0,12));
		jLabel28.setFont(new Font("Dialog",0,12));
		jLabel29.setFont(new Font("Dialog",0,12));
		jLabel30.setFont(new Font("Dialog",0,12));
		jLabel31.setFont(new Font("Dialog",0,12));
		jLabel32.setFont(new Font("Dialog",0,12));
		jLabel33.setFont(new Font("Dialog",0,12));
		L26.setFont(new Font("Dialog",0,12));
		L29.setFont(new Font("Dialog",0,12));
		L32.setFont(new Font("Dialog",0,12));
		Dname.setFont(new Font("Dialog",0,12));
		Aname.setFont(new Font("Dialog",0,12));
		Test.setFont(new Font("Dialog",0,12));
		jLabel26.setBounds(20,20,70,40);
		jLabel27.setBounds(20,40,70,40);
		jLabel28.setBounds(20,60,70,40);
		jLabel29.setBounds(20,80,90,40);
		jLabel30.setBounds(20,100,90,40);
		jLabel31.setBounds(20,120,70,40);
		jLabel32.setBounds(20,140,70,40);
		jLabel33.setBounds(20,160,70,40);
		eEid2.setBounds(110,30,90,20);
		Dname.setBounds(110,50,90,20);
		Aname.setBounds(110,70,90,20);
		Begtime.setBounds(110,90,90,20);
		Endtime.setBounds(110,110,90,20);
		Test.setBounds(110,130,90,20);
		Officephone.setBounds(110,150,90,20);
		Remark.setBounds(110,170,90,20);
		L26.setBounds(210,30,60,20);
		L29.setBounds(210,90,120,20);
		L32.setBounds(210,150,120,20);
		addInfo2.setBounds(120,540,100,30);
		clearInfo2.setBounds(270,540,100,30);
		addInfo2.addActionListener(this);
		clearInfo2.addActionListener(this);
		P2.add(jLabel26);
		P2.add(jLabel27);
		P2.add(jLabel28);
		P2.add(jLabel29);
		P2.add(jLabel30);
		P2.add(jLabel31);
		P2.add(jLabel32);
		P2.add(jLabel33);
		P2.add(eEid2);
		P2.add(Dname);
		P2.add(Aname);
		P2.add(Begtime);
		P2.add(Endtime);
		P2.add(Test);
		P2.add(Officephone);
		P2.add(Remark);
		P2.add(L26);
		P2.add(L29);
		P2.add(L32);
		P2.add(addInfo2);
		P2.add(clearInfo2);
		Dname.setEditable(false);
		Aname.setEditable(false);
		Test.setEditable(false);
		
		//第三页布局
		P3.setLayout(null);
		jLabel34.setFont(new Font("Dialog",0,12));
		jLabel35.setFont(new Font("Dialog",0,12));
		jLabel36.setFont(new Font("Dialog",0,12));
		jLabel37.setFont(new Font("Dialog",0,12));
		jLabel38.setFont(new Font("Dialog",0,12));
		jLabel39.setFont(new Font("Dialog",0,12));
		L34.setFont(new Font("Dialog",0,12));
		tName.setFont(new Font("Dialog",0,12));
		tTest.setFont(new Font("Dialog",0,12));
		jLabel34.setBounds(20,20,70,40);
		jLabel35.setBounds(20,40,70,40);
		jLabel36.setBounds(20,60,90,40);
		jLabel37.setBounds(20,80,90,40);
		jLabel38.setBounds(20,100,70,40);
		jLabel39.setBounds(20,120,70,40);
		eEid3.setBounds(110,30,90,20);
		tName.setBounds(110,50,90,20);
		tBegtime.setBounds(110,70,90,20);
		tEndtime.setBounds(110,90,90,20);
		tTest.setBounds(110,110,90,20);
		tRemark.setBounds(110,130,90,20);
		L34.setBounds(210,30,60,20);
		addInfo3.setBounds(120,540,100,30);
		clearInfo3.setBounds(270,540,100,30);
		addInfo3.addActionListener(this);
		clearInfo3.addActionListener(this);
		P3.add(jLabel34);
		P3.add(jLabel35);
		P3.add(jLabel36);
		P3.add(jLabel37);
		P3.add(jLabel38);
		P3.add(jLabel39);
		P3.add(eEid3);
		P3.add(tName);
		P3.add(tBegtime);
		P3.add(tEndtime);
		P3.add(tTest);
		P3.add(tRemark);
		P3.add(L34);
		P3.add(addInfo3);
		P3.add(clearInfo3);
		tName.setEditable(false);
		tTest.setEditable(false);
		TP.addTab("基本信息",P1);
		TP.addTab("公司信息",P2);
		TP.addTab("培训信息",P3);
		contentPane.add(TP,BorderLayout.CENTER);
	}
	
	/**
	 * 下部面板的布局
	 */
	public void downInit(){
		/*searchInfo.setText("查询");
		searchInfo.setFont(new Font("Dialog",0,12));
		downPanel.add(searchInfo);
		addInfo.setText("添加");
		addInfo.setFont(new Font("Dialog",0,12));
		downPanel.add(addInfo);
		modifyInfo.setText("修改");
		modifyInfo.setFont(new Font("Dialog",0,12));
		downPanel.add(modifyInfo);
		deleteInfo.setText("删除");
		deleteInfo.setFont(new Font("Dialog",0,12));
		downPanel.add(deleteInfo);
		saveInfo.setText("保存");
		saveInfo.setFont(new Font("Dialog",0,12));
		downPanel.add(saveInfo);
		clearInfo.setText("清空");
		clearInfo.setFont(new Font("Dialog",0,12));
		downPanel.add(clearInfo);*/
		eixtInfo.setText("退出");
		eixtInfo.setFont(new Font("Dialog",0,12));
		downPanel.add(eixtInfo);

		contentPane.add(downPanel,BorderLayout.SOUTH);

		//添加事件侦听
		/*searchInfo.addActionListener(this);
		addInfo.addActionListener(this);
		modifyInfo.addActionListener(this);
		deleteInfo.addActionListener(this);
		saveInfo.addActionListener(this);
		clearInfo.addActionListener(this);*/
		eixtInfo.addActionListener(this);

		modifyInfo.setEnabled(false);
		deleteInfo.setEnabled(false);
		saveInfo.setEnabled(false);
		clearInfo1.setEnabled(false);
	}

	/**
	 * 事件处理
	 */
	public void actionPerformed(ActionEvent e) {
		Object obj = e.getSource();
		if (obj == searchInfo) { //查询
		}
		else if (obj == addpic) { //添加照片
		}
		else if (obj == addInfo1) { //添加
		}
		else if (obj == modifyInfo) { //修改
		}
		else if (obj == deleteInfo) { //删除
		}
		else if (obj == saveInfo) { //保存
		}
		else if (obj == clearInfo1) { //清空
			setNull1();
		}
		else if (obj == eixtInfo) { //退出
			this.dispose();
		}
	}

	/**
	 * 将文本框清空
	 */
	void setNull1(){
		eEid1.setText(null);
		ePassword.setText(null);
		eName.setText(null);
		eNation.setText(null);
		eRegion.setText(null);
		eSpecialty.setText(null);
		eBirthday.setText(null);
		eIdcard.setText(null);
		eHlocation.setText(null);
		eCaddress.setText(null);
		ePostcode.setText(null);
		eMobilephone.setText(null);
		eHomephone.setText(null);
		eEmail.setText(null);
		eJobdate.setText(null);
		eContractdate.setText(null);
		eZzdate.setText(null);
		eXqdate.setText(null);
		eFilelocation.setText(null);
	}
	void setNull2(){
		eEid2.setText(null);
		Begtime.setText(null);
		Endtime.setText(null);
		Officephone.setText(null);
		Remark.setText(null);
	}
	void setNull3(){
		eEid3.setText(null);
		tBegtime.setText(null);
		tEndtime.setText(null);
		tRemark.setText(null);
	}

	/**
	 * 通过给定的文件名获得图像
	 */
	Image getImage(String filename) {
		URLClassLoader urlLoader = (URLClassLoader)this.getClass().
			getClassLoader();
		URL url = null;
		Image image = null;
		url = urlLoader.findResource(filename);
		image = Toolkit.getDefaultToolkit().getImage(url);
		MediaTracker mediatracker = new MediaTracker(this);
		try {
			mediatracker.addImage(image, 0);
			mediatracker.waitForID(0);
		}
		catch (InterruptedException _ex) {
			image = null;
		}
		if (mediatracker.isErrorID(0)) {
			image = null;
		}
		return image;
	}
	public static void main(String[] args){
		EmpInfo a=new EmpInfo();
		a.setVisible(true);
	}
}

⌨️ 快捷键说明

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