• 大小: 927KB
    文件类型: .zip
    金币: 2
    下载: 1 次
    发布日期: 2021-05-22
  • 语言: Java
  • 标签: java  

资源简介

简单的java课程设计--个人电话簿,主要功能是增删查改和排序的功能

资源截图

代码片段和文件信息

package com.zoom.controller;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.Jframe;

import com.zoom.model.JDialogUtil;
import com.zoom.model.StringUtil;
import com.zoom.view.JDeletframe;

public class ControlDelet extends JDeletframe implements ActionListener{
/**
 * 
 */
private static final long serialVersionUID = 1L;
String userName;
public ControlDelet(Jframe jframe String userName) {
super(jframe userName);
this.userName=userName;
this.button1.addActionListener(this);
this.button2.addActionListener(this);

}

@Override
public void actionPerformed(ActionEvent e) {

if(e.getSource()==button1){
if (!StringUtil.isEmpty(name.getText())) {
if (DeletTable.canDelet(userName name.getText())) {
JDialogUtil.hintMessage(“删除成功!“);
setVisible(false);
}
else {
JDialogUtil.error(“用户不存在,请重新输入!“);
}
}
else {
JDialogUtil.error(“姓名为空,请输入姓名!“);
}
}
if(e.getSource()==button2){
setVisible(false);
}
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件        3348  2017-11-05 15:52  java课程设计(含源码和文档)\java.sql
     文件     1007765  2017-12-07 11:14  java课程设计(含源码和文档)\Java课程设计报告(电话簿).doc
     目录           0  2017-11-05 15:55  java课程设计(含源码和文档)\PhoneBookProject\
     文件         394  2017-11-05 14:23  java课程设计(含源码和文档)\PhoneBookProject\.classpath
     文件         392  2017-11-05 14:19  java课程设计(含源码和文档)\PhoneBookProject\.project
     目录           0  2017-11-05 15:55  java课程设计(含源码和文档)\PhoneBookProject\.settings\
     文件         598  2017-11-05 14:19  java课程设计(含源码和文档)\PhoneBookProject\.settings\org.eclipse.jdt.core.prefs
     文件       30070  2017-07-11 22:39  java课程设计(含源码和文档)\PhoneBookProject\1.jpg
     文件       17723  2017-07-11 22:43  java课程设计(含源码和文档)\PhoneBookProject\2.jpg
     目录           0  2017-11-05 15:55  java课程设计(含源码和文档)\PhoneBookProject\bin\
     目录           0  2017-11-05 15:55  java课程设计(含源码和文档)\PhoneBookProject\bin\com\
     目录           0  2017-11-05 15:55  java课程设计(含源码和文档)\PhoneBookProject\bin\com\zoom\
     目录           0  2017-11-05 15:55  java课程设计(含源码和文档)\PhoneBookProject\bin\com\zoom\controller\
     文件        1649  2017-11-05 14:23  java课程设计(含源码和文档)\PhoneBookProject\bin\com\zoom\controller\ControlDelet.class
     文件        2149  2017-11-05 14:23  java课程设计(含源码和文档)\PhoneBookProject\bin\com\zoom\controller\ControlInsert.class
     文件        2031  2017-11-05 14:23  java课程设计(含源码和文档)\PhoneBookProject\bin\com\zoom\controller\ControlLoginRegister.class
     文件        2320  2017-11-05 14:23  java课程设计(含源码和文档)\PhoneBookProject\bin\com\zoom\controller\ControlMainframe.class
     文件        2622  2017-11-05 14:23  java课程设计(含源码和文档)\PhoneBookProject\bin\com\zoom\controller\ControlSeed.class
     文件        1560  2017-11-05 14:23  java课程设计(含源码和文档)\PhoneBookProject\bin\com\zoom\controller\ControlSort$1.class
     文件        2874  2017-11-05 14:23  java课程设计(含源码和文档)\PhoneBookProject\bin\com\zoom\controller\ControlSort.class
     文件        1413  2017-11-05 14:23  java课程设计(含源码和文档)\PhoneBookProject\bin\com\zoom\controller\ControlUpdate$1.class
     文件        5210  2017-11-05 14:23  java课程设计(含源码和文档)\PhoneBookProject\bin\com\zoom\controller\ControlUpdate.class
     文件        1231  2017-11-05 14:23  java课程设计(含源码和文档)\PhoneBookProject\bin\com\zoom\controller\DeletTable.class
     文件        2520  2017-11-05 14:23  java课程设计(含源码和文档)\PhoneBookProject\bin\com\zoom\controller\InsertTable.class
     文件        3172  2017-11-05 14:23  java课程设计(含源码和文档)\PhoneBookProject\bin\com\zoom\controller\LoginSql.class
     文件        1434  2017-11-05 14:23  java课程设计(含源码和文档)\PhoneBookProject\bin\com\zoom\controller\QueryTable.class
     文件        2694  2017-11-05 14:23  java课程设计(含源码和文档)\PhoneBookProject\bin\com\zoom\controller\RegisterSql.class
     文件        1563  2017-11-05 14:23  java课程设计(含源码和文档)\PhoneBookProject\bin\com\zoom\controller\SeedTable.class
     文件        1505  2017-11-05 14:23  java课程设计(含源码和文档)\PhoneBookProject\bin\com\zoom\controller\SortTable.class
     文件         459  2017-11-05 14:23  java课程设计(含源码和文档)\PhoneBookProject\bin\com\zoom\controller\Start.class
     文件        2550  2017-11-05 14:23  java课程设计(含源码和文档)\PhoneBookProject\bin\com\zoom\controller\UpdateTable.class
............此处省略57个文件信息

评论

共有 条评论