使用NetBeans用jTable控件实现分页显示数据库记录

上传者: landkim | 上传时间: 2023-02-04 09:07:49 | 文件大小: 51KB | 文件类型: RAR
本程序是先通过各个方法统计出数据库记录的总数,然后通过总记录数数计算出总页数和当前页数以及当前页要显示的记录号,最后将记录保存到二维数组中。通过jTable控件显示出来。 PageTable ------------------//源代码文件夹 javadata -------------------//MySQL文件夹 本人通过安装MySQL Connect ODBC,用JDBC-ODBC桥来和java连接 因为是初学者,有不足之处希望得到批评指正! Email:landkim@163.com

文件下载

资源详情

[{"title":"( 41 个子文件 51KB ) 使用NetBeans用jTable控件实现分页显示数据库记录","children":[{"title":"javadata","children":[{"title":"datalist.frm <span style='color:#111;'> 8.62KB </span>","children":null,"spread":false},{"title":"datalist.MYD <span style='color:#111;'> 920B </span>","children":null,"spread":false},{"title":"datalist.MYI <span style='color:#111;'> 2.00KB </span>","children":null,"spread":false},{"title":"db.opt <span style='color:#111;'> 61B </span>","children":null,"spread":false}],"spread":true},{"title":"PageTable","children":[{"title":"src","children":[{"title":"myview","children":[{"title":"Tablefrm.form <span style='color:#111;'> 16.30KB </span>","children":null,"spread":false},{"title":"Tablefrm.java <span style='color:#111;'> 20.64KB </span>","children":null,"spread":false}],"spread":true},{"title":"mylib","children":[{"title":"resultset_next.png <span style='color:#111;'> 380B </span>","children":null,"spread":false},{"title":"resultset_previous.png <span style='color:#111;'> 381B </span>","children":null,"spread":false},{"title":"resultset_last.png <span style='color:#111;'> 506B </span>","children":null,"spread":false},{"title":"resultset_first.png <span style='color:#111;'> 507B </span>","children":null,"spread":false}],"spread":true},{"title":"mysql","children":[{"title":"databaseClass.java <span style='color:#111;'> 885B </span>","children":null,"spread":false}],"spread":true},{"title":"mytable","children":[{"title":"myTableModelClass.java <span style='color:#111;'> 3.70KB </span>","children":null,"spread":false},{"title":"ddd.java <span style='color:#111;'> 173B </span>","children":null,"spread":false},{"title":"TableDataClass.java <span style='color:#111;'> 12.44KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"build","children":[{"title":"classes","children":[{"title":"myview","children":[{"title":"Tablefrm$3.class <span style='color:#111;'> 726B </span>","children":null,"spread":false},{"title":"Tablefrm.class <span style='color:#111;'> 12.18KB </span>","children":null,"spread":false},{"title":"Tablefrm$6.class <span style='color:#111;'> 526B </span>","children":null,"spread":false},{"title":"Tablefrm$2.class <span style='color:#111;'> 726B </span>","children":null,"spread":false},{"title":"Tablefrm$5.class <span style='color:#111;'> 726B </span>","children":null,"spread":false},{"title":"Tablefrm$1.class <span style='color:#111;'> 698B </span>","children":null,"spread":false},{"title":"Tablefrm$4.class <span style='color:#111;'> 726B </span>","children":null,"spread":false}],"spread":true},{"title":"mylib","children":[{"title":"resultset_next.png <span style='color:#111;'> 380B </span>","children":null,"spread":false},{"title":"resultset_previous.png <span style='color:#111;'> 381B </span>","children":null,"spread":false},{"title":"resultset_last.png <span style='color:#111;'> 506B </span>","children":null,"spread":false},{"title":"resultset_first.png <span style='color:#111;'> 507B </span>","children":null,"spread":false}],"spread":true},{"title":".netbeans_automatic_build <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"mysql","children":[{"title":"databaseClass.class <span style='color:#111;'> 1.38KB </span>","children":null,"spread":false}],"spread":true},{"title":"mytable","children":[{"title":"ddd.class <span style='color:#111;'> 250B </span>","children":null,"spread":false},{"title":"TableDataClass.class <span style='color:#111;'> 6.34KB </span>","children":null,"spread":false},{"title":"myTableModelClass.class <span style='color:#111;'> 3.19KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"empty","children":null,"spread":false},{"title":"generated-sources","children":[{"title":"ap-source-output","children":null,"spread":false}],"spread":true},{"title":"built-jar.properties <span style='color:#111;'> 70B </span>","children":null,"spread":false}],"spread":true},{"title":"dist","children":[{"title":"PageTable.jar <span style='color:#111;'> 26.44KB </span>","children":null,"spread":false},{"title":"README.TXT <span style='color:#111;'> 1.29KB </span>","children":null,"spread":false}],"spread":true},{"title":"nbproject","children":[{"title":"genfiles.properties <span style='color:#111;'> 475B </span>","children":null,"spread":false},{"title":"build-impl.xml <span style='color:#111;'> 55.02KB </span>","children":null,"spread":false},{"title":"project.properties <span style='color:#111;'> 2.28KB </span>","children":null,"spread":false},{"title":"project.xml <span style='color:#111;'> 517B </span>","children":null,"spread":false},{"title":"private","children":[{"title":"private.properties <span style='color:#111;'> 120B </span>","children":null,"spread":false},{"title":"private.xml <span style='color:#111;'> 471B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"build.xml <span style='color:#111;'> 3.63KB </span>","children":null,"spread":false},{"title":"manifest.mf <span style='color:#111;'> 85B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

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