摘要: 惯例广告一发,对于初学真,真的很有用www.java1234.com,去试试吧!1、增加控件jPanel、jTable、jTextField、jTextAreaField、jButton,修改相关属性及美化(略)2、鼠标点击事件private void jt_tableMousePressed(java.awt.event.MouseEvent evt) { int row=jt_table.getSelectedRow(); jt_id.setText((String)jt_table.getValueAt(row, 0)); jt_booktype... 阅读全文
posted @ 2013-06-09 17:40 cnmotive 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 惯例广告一发,对于初学真,真的很有用www.java1234.com,去试试吧!1、创建BookTypeManageInterFrm 1.1创建BookTypeManageInterFrm并修改属性 1.2添加jLable、jTextField、jButton、jTable控制,并修改属性及美化2、在MainFrm中添加点击事件BookTypeManageInterFrm BookTypeManageInterFrm BookTypeManageInterFrm = new BookTypeManageInterFrm(); BookTypeManageInter... 阅读全文
posted @ 2013-06-09 15:01 cnmotive 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 惯例广告一发,对于初学真,真的很有用www.java1234.com,去试试吧!1、增加数据表t_booktype 1.1创建数据表t_booktype 1.2创建数据表项id int pk auto、bookTypeName varchar 20、bookTypeDesc varchar 202、创建BookTypeModel 2.1创建BookType类 2.2构造set、get方法/** * @return the id */ public int getId() { return id; } /** * @param id... 阅读全文
posted @ 2013-06-09 07:50 cnmotive 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 惯例广告一发,对于初学真,真的很有用www.java1234.com,去试试吧!1、编写图书管理系统主界面MainFrm 1.0创建MainFrm 1.1添加Menu Bar、Menu、MenuItem控件 1.2美化界面(略) 1.3设置Frame最大化setExtendedState(JFrame.MAXIMIZED_BOTH);2、登录页面与主界面关联 2.1退出登录页面和显示主界面dispose();new MainFrm().setVisible(true);3、编写退出系统事件jmi_exitint n=JOptionPane.showConfirmDialog(... 阅读全文
posted @ 2013-06-09 00:11 cnmotive 阅读(184) 评论(0) 推荐(0) 编辑