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

📄 empinfo1.java

📁 完整的JAVA工程
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
		P1.add(eName);
		P1.add(L3);
		P1.add(pic);
		P1.add(Lpic);
		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(L10);
		P1.add(jLabel11);
		P1.add(eMarriage);
		P1.add(L11);
		P1.add(jLabel12);
		P1.add(eIdcard);
		P1.add(jLabel13);
		P1.add(eHlocation);
		P1.add(L13);
		P1.add(jLabel14);
		P1.add(eCityhk);
		P1.add(L14);
		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(L20);
		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(selectPic);
		P1.add(searchInfo1);
		P1.add(modifyInfo1);
		P1.add(clearInfo1);
		P1.add(L25);
		
		//第三页布局
		/*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("培训信息",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);
		//clearInfo1.addActionListener(this);
		eixtInfo.addActionListener(this);

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

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

	/**
	 * 将文本框清空
	 */
	void setNull1(){
		ePassword.setText(null);
		eName.setText(null);
		eSex.setText(null);
		eNation.setText(null);
		eRegion.setText(null);
		eEducation.setText(null);
		eSpecialty.setText(null);
		eBirthday.setText(null);
		eGstatus.setText(null);
		eMarriage.setText(null);
		eIdcard.setText(null);
		eHlocation.setText(null);
		eCityhk.setText(null);
		eCaddress.setText(null);
		ePostcode.setText(null);
		eMobilephone.setText(null);
		eHomephone.setText(null);
		eEmail.setText(null);
		eCategory.setText(null);
		eJobdate.setText(null);
		eContractdate.setText(null);
		eZzdate.setText(null);
		eXqdate.setText(null);
		eFilelocation.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){
		EmpInfo1 a=new EmpInfo1();
			a.setVisible(true);
	}
}

⌨️ 快捷键说明

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