ImageVerifierCode 换一换
格式:DOCX , 页数:49 ,大小:27.20KB ,
资源ID:19398669      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/19398669.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(JAVA课程设计基于UI的图书管理系统Word格式文档下载.docx)为本站会员(b****6)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

JAVA课程设计基于UI的图书管理系统Word格式文档下载.docx

1、 String bookname; String bookid; String author; String publisher; String name; int count; JTextField test; JTextField test1; JLabel jLabel; JPanel jpane; int result=0; public Access(String username, String password) this.username = username; this.password = password; try Class.forName(); String stru

2、rl = jdbc:odbc:driver=Microsoft Access Driver (*.mdb);DBQ=D:workspacebookmis.mdb; conn = DriverManager.getConnection(strurl); stmt = conn.createStatement(); catch (Exception e) public Access(String bookname,String bookid,String author,String publisher,JTextField test) this.bookname=bookname; this.bo

3、okid=bookid; this.author=author; this.publisher=publisher; this.test=test; public Access(String bookname,String bookid,String author,String publisher,JLabel jlabel) this.jLabel=jlabel; public Access() public Access(String temp,JTextField test1) this.temp=temp; this.test1=test1; public Access(String

4、aname,JPanel jpane,JLabel jLabel) name=aname; this.jpane=jpane; this.jLabel=jLabel; public Access(String aname,JLabel jLabel) public void regsdit() result=stmt.executeUpdate(insert into userinform(username,password) values(+username+,+password+); catch (SQLException e) / TODO 自动生成 catch 块 new Fail()

5、.getJDialog(); if (result = 1) MainMenu mainmenu = new MainMenu(); mainmenu.getJFrame(); else public void login() rs=stmt.executeQuery(select * from userinform where username= and password= if(rs.next() MainCl maincl =new MainCl(); maincl.getJFrame(); else LoginFail loginfail=new LoginFail(); loginf

6、ail.getJDialog(); e.printStackTrace(); public void insert() insert into bookmis(bookname,num,auther,publisher) values(+bookname+bookid+author+publisher+ if(result=1) test.setText(插入成功 else test.setText(插入失败 public void look() Look alook =new Look(); try rs = stmt.executeQuery(select * from bookmis w

7、hile (rs.next() bookname=rs.getString(bookname bookid=rs.getString(num author=rs.getString(auther publisher=rs.getString(publisher count=rs.getInt(count String acount=Integer.toString(count); String temp=书名: 编号: 作者: 出版社: 数量:+acount; alook.getList().add(temp); alook.getJFrame(); alook.getList().add(n

8、nnn catch(Exception e) public void delete() tryresult=0;delete from bookmis where bookname=+temp+ catch(Exception e) if(result=1) test1.setText(删除成功 else test1.setText(删除失败,你输入的书名有误 public void update() rs = stmt.executeQuery(select * from bookmis where bookname=+name+ if(rs.next() stmt.executeUpdat

9、e( jpane.setVisible(true); else jLabel.setText(请输入正确的书名 catch (SQLException e) public void aupdate() 修改成功 else jLabel.setText(修改失败 public void sendbook() int bcount=rs.getInt( if(bcount=0) jLabel.setText(书已经全部借完return; stmt.executeUpdate(update bookmis set count=count-1 where bookname=借阅成功没有这本书 publ

10、ic void backbook() update bookmis set count=count+1 where bookname=还书成功MainMenu类package view;import access.Access;public class MainMenu private JFrame jFrame = null; / jve:decl-index=0:visual-constraint=159,78 private JPanel jContentPane = null; private JLabel jLabel = null; private JTextField jText

11、Field = null; private JLabel jLabel1 = null; private JButton jButton = null; private JButton jButton1 = null; private JPasswordField jPasswordField = null; /* * This method initializes jFrame * * return */ public JFrame getJFrame() if (jFrame = null) jFrame = new JFrame(); jFrame.setSize(new Dimensi

12、on(461, 320); jFrame.setTitle(图书管理系统登陆界面 jFrame.setContentPane(getJContentPane(); jFrame.setVisible(true); return jFrame; * This method initializes jContentPane private JPanel getJContentPane() if (jContentPane = null) jLabel1 = new JLabel(); jLabel1.setBounds(new Rectangle(30, 121, 167, 30); jLabel

13、1.setText( 密 码 jLabel = new JLabel(); jLabel.setBounds(new Rectangle(30, 45, 167, 31); 用户名 jContentPane = new JPanel(); jContentPane.setLayout(null); jContentPane.add(jLabel, null); jContentPane.add(getJTextField(), null); jContentPane.add(jLabel1, null); jContentPane.add(getJButton(), null); jConte

14、ntPane.add(getJButton1(), null); jContentPane.add(getJPasswordField(), null); return jContentPane; * This method initializes jTextField private JTextField getJTextField() if (jTextField = null) jTextField = new JTextField(); jTextField.setBounds(new Rectangle(211, 44, 223, 35); return jTextField; *

15、This method initializes jButton private JButton getJButton() if (jButton = null) jButton = new JButton(); jButton.setBounds(new Rectangle(61, 211, 121, 32); jButton.setText(登陆 jButton.addActionListener(newr() public void String username=jTextField.getText(); String password=jPasswordField.getText();

16、 Access access=new Access(username,password); access.login(); jFrame.setVisible(false); ); return jButton; * This method initializes jButton1 private JButton getJButton1() if (jButton1 = null) jButton1 = new JButton(); jButton1.setBounds(new Rectangle(269, 210, 139, 32); jButton1.setText(注册 jButton1

17、.addActionListener(new Regsdit regsdit=new Regsdit(); regsdit.getJFrame(); return jButton1;/* * This method initializes jPasswordField private JPasswordField getJPasswordField() if (jPasswordField = null) jPasswordField = new JPasswordField(); jPasswordField.setBounds(new Rectangle(211, 121, 225, 29); return jPasswordField;public static void main(String a) MainMenu mainmenu=new MainMenu(); mainmenu.getJFrame();MainCl类import ja

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1