首页 开发技术 Java     /    Java图形用户界面通讯录

Java图形用户界面通讯录

上传者: luhuangood | 上传时间:2025/1/14 9:56:29 | 文件大小:99KB | 文件类型:rar
Java图形用户界面通讯录
用Java编写的图形用户界面通讯录packagemyaddressbody;importjava.awt.event.ActionEvent;importjava.awt.event.ActionListener;importjava.sql.Connection;importjava.sql.Date;importjava.sql.DriverManager;importjava.sql.ResultSet;importjava.sql.Statement;importjavax.swing.JButton;publicclassDemonstrationacctionimplementsActionListener{ publicvoidactionPerformed(ActionEvente){ if(((JButton)e.getSource()).getText().equals("显示查询结果")){ Stringdburl="jdbc:odbc:driver={MicrosoftAccessDriver(*.mdb)};DBQ=main.mdb"; Stringsql; Connectioncon; Statementstmt; Stringnm,sx,mp,ph,em,ca,ha,nb,gp,lbMQ,all; booleanbdr; Datebd; try{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); }catch(java.lang.ClassNotFoundExceptione2){ System.err.print("ClassNotFoundException:"); System.err.println(e2.getMessage()); } try{ con=DriverManager.getConnection(dburl,"",""); stmt=con.createStatement(); sql="SELECT*FROMaddress"; ResultSetws=stmt.executeQuery(sql); while(ws.next()){ nm=ws.getString(1); sx=ws.getString(2); bd=ws.getDate(3); mp=ws.getString(4); ph=ws.getString(5); ca=ws.getString(6); em=ws.getString(7); ha=ws.getString(8); gp=ws.getString(9); nb=ws.getString(10); lbMQ=ws.getString(11); all="姓名:"+nm+"性别:"+sx+"生日:"+bd +"移动电话:"+mp+"固定电话:"+ph+"MSN/QQ:" +lbMQ+"公司地址:"+ca+"EMail:"+em +"家庭地址:"+ha+"组别"+gp+"备注:"+nb +"\n"; Demonstrationaframe.lbdem.append(all); } stmt.close(); con.close(); }catch(Exceptionex) { System.out.println("Exception:"+ex.getMessage()); } } if(((JButton)e.getSource()).getText().equals("退出全部查询")){ Demonstrationaframe.lbdem.setText(""); Demonstrationaframe.demFrame.setVisible(false); } }} 本软件ID:1973584

文件下载

资源详情

[{"title":"(45个子文件99KB)Java图形用户界面通讯录","children":[{"title":"个人通讯录管理系统","children":[{"title":"Images","children":[{"title":"U.jpg <span style='color:#111;'>38.90KB</span>","children":null,"spread":false},{"title":"Thumbs.db <span style='color:#111;'>5.50KB</span>","children":null,"spread":false}],"spread":true},{"title":".settings","children":[{"title":"de.mvmsoft.checkclipse.prefs <span style='color:#111;'>71B</span>","children":null,"spread":false}],"spread":true},{"title":".project <span style='color:#111;'>593B</span>","children":null,"spread":false},{"title":"SQL错误代码.txt <span style='color:#111;'>6.39KB</span>","children":null,"spread":false},{"title":".classpath <span style='color:#111;'>226B</span>","children":null,"spread":false},{"title":"main.mdb <span style='color:#111;'>548.00KB</span>","children":null,"spread":false},{"title":"myaddressbody","children":[{"title":"Revisionpassword.java <span style='color:#111;'>1.17KB</span>","children":null,"spread":false},{"title":"Panelframeacction.class <span style='color:#111;'>4.98KB</span>","children":null,"spread":false},{"title":"FrameAction.class <span style='color:#111;'>1.63KB</span>","children":null,"spread":false},{"title":"Loginframe.class <span style='color:#111;'>1.99KB</span>","children":null,"spread":false},{"title":"Fdframe.java <span style='color:#111;'>1.04KB</span>","children":null,"spread":false},{"title":"Dlframeaction.java <span style='color:#111;'>1.35KB</span>","children":null,"spread":false},{"title":"Year.java <span style='color:#111;'>5.70KB</span>","children":null,"spread":false},{"title":"Fdframeacction.class <span style='color:#111;'>4.11KB</span>","children":null,"spread":false},{"title":"Revisionpassword.class <span style='color:#111;'>1.72KB</span>","children":null,"spread":false},{"title":"Demonstrationaframe.java <span style='color:#111;'>1.08KB</span>","children":null,"spread":false},{"title":"Fdframeacction.java <span style='color:#111;'>2.86KB</span>","children":null,"spread":false},{"title":"Image.java <span style='color:#111;'>474B</span>","children":null,"spread":false},{"title":"Myaddress.java <span style='color:#111;'>1.76KB</span>","children":null,"spread":false},{"title":"Loginframe.java <span style='color:#111;'>1.38KB</span>","children":null,"spread":false},{"title":"Myaddress.class <span style='color:#111;'>2.25KB</span>","children":null,"spread":false},{"title":"Dlframeaction.class <span style='color:#111;'>2.50KB</span>","children":null,"spread":false},{"title":"Fdframe.class <span style='color:#111;'>1.60KB</span>","children":null,"spread":false},{"title":"Fdkeepacction.class <span style='color:#111;'>3.66KB</span>","children":null,"spread":false},{"title":"LoginIn.java <span style='color:#111;'>2.02KB</span>","children":null,"spread":false},{"title":"Demonstrationacction.class <span style='color:#111;'>3.32KB</span>","children":null,"spread":false},{"title":"FrameAction.java <span style='color:#111;'>1.10KB</span>","children":null,"spread":false},{"title":"Panelframe.java <span style='color:#111;'>6.87KB</span>","children":null,"spread":false},{"title":"Image.class <span style='color:#111;'>812B</span>","children":null,"spread":false},{"title":"Fdkeep.java <span style='color:#111;'>1.05KB</span>","children":null,"spread":false},{"title":"Revisionmovement.java <span style='color:#111;'>1.95KB</span>","children":null,"spread":false},{"title":"Panelframe.class <span style='color:#111;'>5.25KB</span>","children":null,"spread":false},{"title":"Myaddress$1.class <span style='color:#111;'>646B</span>","children":null,"spread":false},{"title":"Fdkeep.class <span style='color:#111;'>1.61KB</span>","children":null,"spread":false},{"title":"Dlframe.java <span style='color:#111;'>1012B</span>","children":null,"spread":false},{"title":"Dlframe.class <span style='color:#111;'>1.53KB</span>","children":null,"spread":false},{"title":"Demonstrationaframe.class <span style='color:#111;'>1.74KB</span>","children":null,"spread":false},{"title":"Panelframeacction.java <span style='color:#111;'>4.78KB</span>","children":null,"spread":false},{"title":"LoginIn.class <span style='color:#111;'>3.19KB</span>","children":null,"spread":false},{"title":"Demonstrationacction.java <span style='color:#111;'>2.00KB</span>","children":null,"spread":false},{"title":"Fdkeepacction.java <span style='color:#111;'>2.40KB</span>","children":null,"spread":false},{"title":"Revisionmovement.class <span style='color:#111;'>2.82KB</span>","children":null,"spread":false},{"title":"Year.class <span style='color:#111;'>2.65KB</span>","children":null,"spread":false}],"spread":false},{"title":"Checkstyle检查的结果输出,解释如下.txt <span style='color:#111;'>1.71KB</span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

  • 大神的儿子:
    太帅了,这个资源实在是太帅了,让我打开眼界,顶`~~~!我再顶2014-12-14
  • 少年风华正茂:
    存储使用了数据库,对我来说用处不算很大。。。不过作者写的很详细,平时学习看看还是可以的2014-10-22
  • zhang429376429:
    看不太懂,再研究研究2014-06-26
  • 家里蹲的李狗蛋:
    挺好的资源,学习了2014-03-15
  • zhl425732441:
    只能看源码运行要密码2012-11-18

免责申明

【好快吧下载】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【好快吧下载】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【好快吧下载】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,8686821#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明