没有合适的资源?快使用搜索试试~ 我知道了~
首页java程序源代码,图书室借阅管理系统的程序
java程序源代码,图书室借阅管理系统的程序
5星 · 超过95%的资源 需积分: 12 109 下载量 155 浏览量
更新于2023-03-03
7
收藏 88KB DOC 举报
public String booknameString[]={"","","","","","",""};//建立一个五个元素的数组用来存储用户所借书的条形码 public String returndateString[]={"","","","","","",""}; //用于修改密码的显示标签和密码文本框 private JPasswordField newpassword = new JPasswordField(); private JPasswordField oldpassword = new JPasswordField(); private JLabel newPass = new JLabel("请输入新密码:"); private JLabel oldPass = new JLabel("请输入原密码:"); private JButton yes = new JButton("修改"); private JButton cancel = new JButton("取消"); private String MM_username=""; //用于记录登陆成功后的用户名
资源详情
资源推荐
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.sql.*;
public class index implements ActionListener{
private JFrame frame = new JFrame("
图书管理系统
");
private JPanel middlePanel = new JPanel(true);
private Container contentPane = frame.getContentPane();
private JLabel copyright = new JLabel("aa",JLabel.CENTER);
private JTextArea middleText = new JTextArea();
private JLabel infoLabel = new JLabel();
private JButton borrow =new JButton("
借阅
");
private JLabel lb1=new JLabel("
输入图书的条形码:
");
private JTextField bookNumber=new JTextField(16);
private JPanel aa=new JPanel();
public String booknameString[]={"","","","","","",""};//
建立一个五个元素的数组用来存储用
户所借书的条形码
public String returndateString[]={"","","","","","",""};
//
用于修改密码的显示标签和密码文本框
private JPasswordField newpassword = new JPasswordField();
private JPasswordField oldpassword = new JPasswordField();
private JLabel newPass = new JLabel("
请输入新密码
:");
private JLabel oldPass = new JLabel("
请输入原密码
:");
private JButton yes = new JButton("
修改
");
private JButton cancel = new JButton("
取消
");
private String MM_username=""; //
用于记录登陆成功后的用户名
public static void main(String args[]){
index menuDemo = new index();
menuDemo.go();
}
public void go(){ //
实现功能的方法
cancel.addActionListener(this); //
为修改密码的页面中的两个按钮注册事件监听
yes.addActionListener(this);
borrow.addActionListener(this);//
为图书借阅页面中的“借阅”按钮注册事件监听
共 15 页 第 1 页
JMenuBar menubar = new JMenuBar();
frame.setJMenuBar(menubar);
JMenu mainMenu;
JMenuItem itemMenu;
//
添加用户信息菜单
mainMenu = new JMenu("
用户信息
");
mainMenu.setMnemonic(KeyEvent.VK_F);
menubar.add(mainMenu);
//
子菜单中添加查看信息功能
itemMenu = new JMenuItem("
查看个人信息
");
itemMenu.setMnemonic(KeyEvent.VK_O);
itemMenu.addActionListener(this);
mainMenu.add(itemMenu);
//
子菜单中添加修改密码功能
itemMenu = new JMenuItem("
修改密码
");
itemMenu.setMnemonic(KeyEvent.VK_R);
itemMenu.addActionListener(this);
mainMenu.add(itemMenu);
//
在子菜单中添加分隔线
mainMenu.add(new JSeparator());
//
子菜单中添加退出功能
itemMenu = new JMenuItem("
退出
");
itemMenu.setMnemonic(KeyEvent.VK_E);
itemMenu.addActionListener(this);
mainMenu.add(itemMenu);
//
添加个人图书管理菜单
mainMenu = new JMenu("
个人图书管理
");
menubar.add(mainMenu);
//
子菜单中添加图书查询功能
itemMenu = new JMenuItem("
个人借阅情况查询
");
itemMenu.setMnemonic(KeyEvent.VK_C);
itemMenu.addActionListener(this);
mainMenu.add(itemMenu);
//
添加图书查询
mainMenu = new JMenu("
图书查询
");
共 15 页 第 2 页
menubar.add(mainMenu);
//
子菜单中添加图书搜索的功能
itemMenu = new JMenuItem("
图书搜索
");
itemMenu.addActionListener(this);
mainMenu.add(itemMenu);
//
添加帮助菜单
mainMenu = new JMenu("
帮助
");
menubar.add(mainMenu);
//
子菜单中添加关于我们功能
itemMenu = new JMenuItem("
关于我们
");
itemMenu.addActionListener(this);
mainMenu.add(itemMenu);
//
子菜单添加关于软件功能
itemMenu = new JMenuItem("
关于此软件
");
itemMenu.addActionListener(this);
mainMenu.add(itemMenu);
copyright.setText("
版权所有:延安大学计算机学院计
05
级一班
郭建新
QQ:304088508
Email:simple-flyer@163.com");
middleText.setBackground(Color.white);
contentPane.add(copyright,BorderLayout.SOUTH);
contentPane.add(middleText,BorderLayout.CENTER);
lb1.setFont(new java.awt.Font("DialogInput", Font.PLAIN, 17));
borrow.setFont(new java.awt.Font("DialogInput", Font.PLAIN, 17));
contentPane.add(infoLabel,BorderLayout.NORTH);
middleText.setFont(new java.awt.Font("DialogInput", Font.PLAIN, 15));
middleText.setEditable(false); //
设置文本框
middleText
不能编辑
middleText.setText("
欢迎你来到图书管理系统!
\n
该系统介绍:
\n
该系统是由
java
语言
实现的,该系统采用桥连接了
SQL" +
" Sever
数据库,数据库名称为
javadb,
数据库中包含的表由:
\n books
表,
borrow
表,
about
表,
login
表,
administer
表
" +
"
五个表。该系统实现了图书管理系统中的基本功能,如:
\n
借书,还书,续借图书,
用户查看自己的信息,用户修改密码,查看自
" +
"
己的借阅情况,查看所有图书,管理员增加图书,
\n
管理员删除图书,管理员修改
密码等功能。
");
共 15 页 第 3 页
剩余14页未读,继续阅读
abc719917607
- 粉丝: 5
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- zigbee-cluster-library-specification
- JSBSim Reference Manual
- c++校园超市商品信息管理系统课程设计说明书(含源代码) (2).pdf
- 建筑供配电系统相关课件.pptx
- 企业管理规章制度及管理模式.doc
- vb打开摄像头.doc
- 云计算-可信计算中认证协议改进方案.pdf
- [详细完整版]单片机编程4.ppt
- c语言常用算法.pdf
- c++经典程序代码大全.pdf
- 单片机数字时钟资料.doc
- 11项目管理前沿1.0.pptx
- 基于ssm的“魅力”繁峙宣传网站的设计与实现论文.doc
- 智慧交通综合解决方案.pptx
- 建筑防潮设计-PowerPointPresentati.pptx
- SPC统计过程控制程序.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功