package personnel_management;
import javax.swing.JFrame;
import com.borland.jbcl.layout.XYLayout;
import com.borland.jbcl.layout.*;
import javax.swing.JMenuBar;
import java.awt.Font;
import javax.swing.JMenu;
import javax.swing.JMenuItem;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.Color;
import javax.swing.UIManager;
import javax.swing.JLabel;
import javax.swing.ImageIcon;
import java.awt.Rectangle;
import java.awt.BorderLayout;
/**
* <p>Title:主页面 </p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright (c) 2008</p>
*
* <p>Company: </p>
*
* @author not attributable
* @version 1.0
*/
public class home_page extends JFrame {
JMenuBar jMenuBar1 = new JMenuBar();
JMenu jMenu2 = new JMenu();
JMenuItem jMenuItem4 = new JMenuItem();
JMenuItem jMenuItem5 = new JMenuItem();
JMenuItem jMenuItem6 = new JMenuItem();
JMenu jMenu3 = new JMenu();
JMenu jMenu4 = new JMenu();
JMenu jMenu5 = new JMenu();
JMenu jMenu6 = new JMenu();
JMenuItem jMenuItem10 = new JMenuItem();
JMenuItem jMenuItem11 = new JMenuItem();
JMenuItem jMenuItem12 = new JMenuItem();
JMenu jMenu7 = new JMenu();
JMenuItem jMenuItem13 = new JMenuItem();
JLabel jLabel1 = new JLabel();
JMenuItem jMenuItem2 = new JMenuItem();
JMenu jMenu1 = new JMenu();
JMenuItem jMenuItem1 = new JMenuItem();
JMenuItem jMenuItem3 = new JMenuItem();
JMenu jMenu8 = new JMenu();
JMenuItem jMenuItem7 = new JMenuItem();
JMenuItem jMenuItem15 = new JMenuItem();
JMenuItem jMenuItem16 = new JMenuItem();
JMenu jMenu9 = new JMenu();
JMenuItem jMenuItem8 = new JMenuItem();
JMenuItem jMenuItem17 = new JMenuItem();
JMenuItem jMenuItem18 = new JMenuItem();
JMenu jMenu10 = new JMenu();
JMenuItem jMenuItem9 = new JMenuItem();
JMenuItem jMenuItem19 = new JMenuItem();
JMenuItem jMenuItem20 = new JMenuItem();
JMenuItem jMenuItem21 = new JMenuItem();
JMenu jMenu11 = new JMenu();
JMenuItem jMenuItem22 = new JMenuItem();
JMenuItem jMenuItem23 = new JMenuItem();
JMenuItem jMenuItem24 = new JMenuItem();
JMenuItem jMenuItem25 = new JMenuItem();
JMenuItem jMenuItem26 = new JMenuItem();
JMenu jMenu12 = new JMenu();
JMenuItem jMenuItem27 = new JMenuItem();
JMenuItem jMenuItem28 = new JMenuItem();
ImageIcon home = new ImageIcon("image\\home.jpg");
BorderLayout borderLayout1 = new BorderLayout();
public home_page() {
try {
setDefaultCloseOperation(EXIT_ON_CLOSE);
jbInit();
} catch (Exception exception) {
exception.printStackTrace();
}
}
private void jbInit() throws Exception {
getContentPane().setLayout(borderLayout1);
this.getContentPane().setBackground(UIManager.getColor(
"InternalFrame.activeTitleGradient"));
this.setForeground(Color.black);
this.setJMenuBar(jMenuBar1);
this.setTitle("人事管理系统");
this.setSize(768, 515);
this.setLocation(200, 100);
jMenuBar1.setFont(new java.awt.Font("宋体", Font.PLAIN, 15));
jMenu2.setFont(new java.awt.Font("宋体", Font.PLAIN, 15));
jMenu2.setText("操作员信息管理");
jMenuItem4.setFont(new java.awt.Font("宋体", Font.PLAIN, 15));
jMenuItem4.setText("添加操作员");
jMenuItem4.addActionListener(new home_page_jMenuItem4_actionAdapter(this));
jMenuItem5.setFont(new java.awt.Font("宋体", Font.PLAIN, 15));
jMenuItem5.setText("删除操作员");
jMenuItem5.addActionListener(new home_page_jMenuItem5_actionAdapter(this));
jMenuItem6.setFont(new java.awt.Font("宋体", Font.PLAIN, 15));
jMenuItem6.setText("修改密码");
jMenuItem6.addActionListener(new home_page_jMenuItem6_actionAdapter(this));
jMenu3.setFont(new java.awt.Font("宋体", Font.PLAIN, 15));
jMenu3.setText("员工信息管理");
jMenu4.setFont(new java.awt.Font("宋体", Font.PLAIN, 15));
jMenu4.setText("部门信息管理");
jMenu5.setFont(new java.awt.Font("宋体", Font.PLAIN, 15));
jMenu5.setText("考勤信息管理");
jMenu6.setFont(new java.awt.Font("宋体", Font.PLAIN, 15));
jMenu6.setText("查询管理");
jMenuItem10.setFont(new java.awt.Font("宋体", Font.PLAIN, 15));
jMenuItem10.setText("员工信息查询");
jMenuItem10.addActionListener(new home_page_jMenuItem10_actionAdapter(this));
jMenuItem11.setFont(new java.awt.Font("宋体", Font.PLAIN, 15));
jMenuItem11.setText("部门信息查询");
jMenuItem11.addActionListener(new home_page_jMenuItem11_actionAdapter(this));
jMenuItem12.setFont(new java.awt.Font("宋体", Font.PLAIN, 15));
jMenuItem12.setText("考勤信息查询");
jMenuItem12.addActionListener(new home_page_jMenuItem12_actionAdapter(this));
jMenu7.setFont(new java.awt.Font("宋体", Font.PLAIN, 15));
jMenu7.setText("数据库操作");
jMenuItem13.setFont(new java.awt.Font("宋体", Font.PLAIN, 15));
jMenuItem13.setText("备份数据库");
jMenuItem13.addActionListener(new home_page_jMenuItem13_actionAdapter(this));
jLabel1.setBackground(Color.black);
jLabel1.setFont(new java.awt.Font("宋体", Font.PLAIN, 40));
jLabel1.setForeground(Color.yellow);
jLabel1.setIcon(home);
jMenuItem2.setFont(new java.awt.Font("宋体", Font.PLAIN, 15));
jMenuItem2.setText("注销");
jMenuItem2.addActionListener(new home_page_jMenuItem2_actionAdapter(this));
jMenu1.setFont(new java.awt.Font("宋体", Font.PLAIN, 15));
jMenu1.setText("帮助");
jMenuItem1.setFont(new java.awt.Font("宋体", Font.PLAIN, 15));
jMenuItem1.setText("关于帮助");
jMenuItem1.addActionListener(new home_page_jMenuItem1_actionAdapter(this));
jMenuItem3.setFont(new java.awt.Font("宋体", Font.PLAIN, 15));
jMenuItem3.setText("退出");
jMenuItem3.addActionListener(new home_page_jMenuItem3_actionAdapter(this));
jMenu8.setFont(new java.awt.Font("宋体", Font.PLAIN, 15));
jMenu8.setText("员工信息设置");
jMenuItem7.setFont(new java.awt.Font("宋体", Font.PLAIN, 15));
jMenuItem7.setText("添加信息");
jMenuItem7.addActionListener(new home_page_jMenuItem7_actionAdapter(this));
jMenuItem15.setFont(new java.awt.Font("宋体", Font.PLAIN, 15));
jMenuItem15.setText("修改信息");
jMenuItem15.addActionListener(new home_page_jMenuItem15_actionAdapter(this));
jMenuItem16.setFont(new java.awt.Font("宋体", Font.PLAIN, 15));
jMenuItem16.setText("删除信息");
jMenuItem16.addActionListener(new home_page_jMenuItem16_actionAdapter(this));
jMenu9.setFont(new java.awt.Font("宋体", Font.PLAIN, 15));
jMenu9.setText("部门信息设置");
jMenuItem8.setFont(new java.awt.Font("宋体", Font.PLAIN, 15));
jMenuItem8.setText("添加信息");
jMenuItem8.addActionListener(new home_page_jMenuItem8_actionAdapter(this));
jMenuItem17.setFont(new java.awt.Font("宋体", Font.PLAIN, 15));
jMenuItem17.setText("修改信息");
jMenuItem17.addActionListener(new home_page_jMenuItem17_actionAdapter(this));
jMenuItem18.setFont(new java.awt.Font("宋体", Font.PLAIN, 15));
jMenuItem18.setText("删除信息");
jMenuItem18.addActionListener(new home_page_jMenuItem18_actionAdapter(this));
jMenu10.setFont(new java.awt.Font("宋体", Font.PLAIN, 15));
jMenu10.setText("考勤信息设置");
jMenuItem9.setFont(new java.awt.Font("宋体", Font.PLAIN, 15));
jMenuItem9.setText("添加信息");
jMenuItem9.addActionListener(new home_page_jMenuItem9_actionAdapter(this));
jMenuItem19.setFont(new java.awt.Font("宋体", Font.PLAIN, 15));