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

📄 700830b39fac001d105fa91adc11449d

📁 超好用的企业员工信息管理系统
💻
字号:
package frame;

import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import model.FrameInit;
public class AddEmployee extends JFrame{
	JFrame ae = new JFrame("员工信息添加");
	JPanel p = new JPanel();
	JTextField ename;
	JTextField eyname;
	JComboBox sex = new JComboBox();
	JTextField birthday;
	JComboBox nativeplace = new JComboBox();
	JComboBox nation = new JComboBox();
	JTextField hkszd;
	JTextField bornaddress;
	JTextField commmiityname;
	JTextField firstedu;
	JTextField education;
	JTextField school;
	JTextField specialname;
	JTextField intoschooldate;
	JTextField graduatedate;
	JComboBox isfirstedu = new JComboBox();
	JComboBox degree = new JComboBox();
	JTextField eduyears;
	JTextField studyway;
	JComboBox ploityface = new JComboBox();
	JTextField intoparydate;
	JTextField workway;
	JComboBox dutyname =new JComboBox();
	JComboBox spedutyname = new JComboBox();
	JTextField beginworddate;
	JTextField intodeptdate;
	JTextField wordstate;
	JTextField retireddate;
	JTextField grsf;
	JTextField bgphone;
	JTextField sjphone;
	JTextField homephone;
	JTextField fyzymark;
	JTextField idcard;
	JTextField xxdate;
	JTextField ldhtid;
	JComboBox deptno = new JComboBox();
	JTextField classname;
	JTextArea menu;
	public AddEmployee(){
		FrameInit.InitFrame(ae, p);
		p.setLayout(new GridBagLayout());
		final JLabel lblename = new JLabel("员工姓名:");
		//this.setupComponet(lblename, 0, 0, 1, 0, false);
		p.add(lblename);
		ename = new JTextField(10);
		//setupComponet(ename, 1, 0, 3, 350, true);
		p.add(ename);
		ae.setVisible(true);
	}
	//设置组件位置,并添加到容器
	private void setupComponet(JComponent component,int gridx,
			int gridy,int gridwidth,int ipadx,boolean fill){
		final GridBagConstraints g = new GridBagConstraints();
		g.gridx = gridx;
		g.gridy = gridy;
		if(gridwidth>1){
			g.gridwidth = gridwidth;
		}
		if(ipadx>0){
			g.ipadx = ipadx;
		}
		if(fill){
			g.fill = g.HORIZONTAL;
			add(component,g);
		}
	}
}

⌨️ 快捷键说明

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