• 大小: 1.48MB
    文件类型: .7z
    金币: 1
    下载: 0 次
    发布日期: 2023-10-22
  • 语言: Java
  • 标签:

资源简介

java+mysql工资管理系统,用swing控件做的工资管理系统,功能基本齐全。下载一运行就可以用的了。用户与密码在数据库中可以自行修改

资源截图

代码片段和文件信息

/*
 * To change this template choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * AddDepartment.java
 *
 * Created on 2013-6-22 12:14:44
 */

package code;

//import SQLConnection.DBConn;
import java.awt.Toolkit;
import javax.swing.JOptionPane;


/**
 *
 * @author Administrator
 */
public class AddDepartment extends javax.swing.Jframe {

    /** Creates new form AddDepartment */
     private Toolkit tk = Toolkit.getDefaultToolkit();
    int x = tk.getScreenSize().width / 2 - 100;
    int y = tk.getScreenSize().height / 2 - 100;

    public AddDepartment() {
        initComponents();
        settitle(“添加部门信息“);
        setLocation(xy);
        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings(“unchecked“)
    // //GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jTextField1 = new javax.swing.JTextField();
        jTextField2 = new javax.swing.JTextField();
        jTextField3 = new javax.swing.JTextField();
        jTextField4 = new javax.swing.JTextField();
        jButton1 = new javax.swing.JButton();
        jButton2 = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jPanel1.setBorder(javax.swing.BorderFactory.createtitledBorder(“部门信息“));

        jLabel1.setText(“部门编号:“);

        jLabel2.setText(“部门名称:“);

        jLabel3.setText(“负责人:“);

        jLabel4.setText(“总人数:“);

        jTextField1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField1ActionPerformed(evt);
            }
        });

        jTextField2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField2ActionPerformed(evt);
            }
        });

        jTextField3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField3ActionPerformed(evt);
            }
        });

        jTextField4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField4ActionPerformed(evt);
            }
        });

        jButton1.setText(“添加“);
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerfo

评论

共有 条评论