资源简介

java课程设计作业,通讯录管理软件,支持名片增删改查功能,名片可无限层次分组,导入导出到excel

资源截图

代码片段和文件信息


import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Vector;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;

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

/*
 * Correct.java
 *
 * Created on 2011-10-16 21:49:11
 */
/**
 *
 * @author Administrator
 */
public class Correct extends javax.swing.Jframe {

    private static Vector PeopleList = new Vector();
    int key;
    private String address;

    /** Creates new form Correct */
    public Correct() {
        initComponents();
    }

    private Correct(Vector PeopleList int key String namex object sexx String phonex String emailx String otherx String address) {
        initComponents();
        this.PeopleList = PeopleList;
        this.key = key;
        this.address = address;
        name.setText(namex);
        phone.setText(phonex);
        email.setText(emailx);
        other.setText(otherx);
        sex.setSelectedItem(sexx);
    }

    /** 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() {

        jLabel7 = new javax.swing.JLabel();
        sex = new javax.swing.JComboBox();
        back = new javax.swing.JButton();
        jLabel6 = new javax.swing.JLabel();
        ok = new javax.swing.JButton();
        jLabel4 = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        name = new javax.swing.JTextField();
        other = new javax.swing.JTextField();
        phone = new javax.swing.JTextField();
        jLabel2 = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        email = new javax.swing.JTextField();
        jLabel3 = new javax.swing.JLabel();

        settitle(“修改名片“);
        setBounds(new java.awt.Rectangle(310 205 0 0));

        jLabel7.setText(“*“);

        sex.setModel(new javax.swing.DefaultComboBoxModel(new String[] { “男“ “女“ }));

        back.setText(“返回“);
        back.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                backActionPerformed(evt);
            }
        });

        jLabel6.setText(“*“);

        ok.setText(“确认“);
        ok.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                okActionPerformed(evt);
            }
        });

        jLabel4.setText(“备注:“);

        jLabel9.setText(“性别:“);

        jLabel8.setText(“*“);

        name.addActionListener(new java.aw

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        130  2011-11-18 01:07  build\built-jar.properties

     文件        677  2011-11-18 01:07  build\classes\Correct$1.class

     文件        677  2011-11-18 01:07  build\classes\Correct$2.class

     文件        677  2011-11-18 01:07  build\classes\Correct$3.class

     文件        677  2011-11-18 01:07  build\classes\Correct$4.class

     文件        677  2011-11-18 01:07  build\classes\Correct$5.class

     文件      10020  2011-11-18 01:07  build\classes\Correct.class

     文件      10700  2011-11-18 01:07  build\classes\Correct.form

     文件      13459  2011-11-18 01:07  build\classes\Correct.java

     文件        705  2011-11-18 01:07  build\classes\CountSelect$1.class

     文件        705  2011-11-18 01:07  build\classes\CountSelect$2.class

     文件       5792  2011-11-18 01:07  build\classes\CountSelect.class

     文件       5129  2011-11-18 01:07  build\classes\CountSelect.form

     文件       6030  2011-11-18 01:07  build\classes\CountSelect.java

     文件        691  2011-11-18 01:07  build\classes\CreateNew$1.class

     文件        728  2011-11-18 01:07  build\classes\CreateNew$2.class

     文件        691  2011-11-18 01:07  build\classes\CreateNew$3.class

     文件        691  2011-11-18 01:07  build\classes\CreateNew$4.class

     文件        691  2011-11-18 01:07  build\classes\CreateNew$5.class

     文件        691  2011-11-18 01:07  build\classes\CreateNew$6.class

     文件        691  2011-11-18 01:07  build\classes\CreateNew$7.class

     文件        691  2011-11-18 01:07  build\classes\CreateNew$8.class

     文件        509  2011-11-18 01:07  build\classes\CreateNew$9.class

     文件      17051  2011-11-18 01:07  build\classes\CreateNew.class

     文件      14285  2011-11-18 01:07  build\classes\CreateNew.form

     文件      26002  2011-11-18 01:07  build\classes\CreateNew.java

     文件       1920  2011-11-18 01:07  build\classes\JxlReadExcel.class

     文件       1389  2011-11-18 01:07  build\classes\JxlReadExcel.java

     文件       2468  2011-11-18 01:07  build\classes\JxlWriteExcel.class

     文件       1706  2011-11-18 01:07  build\classes\JxlWriteExcel.java

............此处省略57个文件信息

评论

共有 条评论