软件08-3-逄治明-UC公司人事信息管理系统(18)
时间:2025-01-11
时间:2025-01-11
附 录
public class HRM_App {
public static void main (String[] args) {
Login _Login=new Login(); } }
系统主页面代码为: import java.awt.*; import javax.swing.*; import javax.sql.*; import java.awt.event.*;
public class AppMain extends JFrame {
private JMenuBar barMain = new JMenuBar();
private MenuBarListener _MenuBarListener = new MenuBarListener(); public final JDesktopPane desktop = new JDesktopPane(); public static DbConnection connetion=new DbConnection(); private int i,j; public AppMain() {
super("人事管理系统");
Container container = getContentPane(); container.add(desktop,BorderLayout.CENTER); MenuBarListener.setDeskTop(desktop); BuildBarMain();
this.setJMenuBar(barMain); setSize(900,700);
int w = (Toolkit.getDefaultToolkit().getScreenSize().width - 900) / 2; int h = (Toolkit.getDefaultToolkit().getScreenSize().height - 700) / 2; setLocation(w, h);setVisible(true); addWindowListener(new WindowAdapter()
{
public void windowClosing(WindowEvent event)