2024年3月14日发(作者:)
系统实现的功能主要有:
(1).图书基本信息操作:书籍信息的添加、删除、修改、查询
(2).办理借书模块:新生办理借书证和借书证丢失后的挂失
(3).借书功能:借书信息的输入和借书信息的查询
(4).还书功能:还书信息的输入和还书信息的查询和修改
图书馆图书管理系统
主窗口:
import .*;
import .*;
import .*;
import .*;
public class MainWindow extends JFrame implements ActionListener
{
JPanel panel1;//panel2;
Container c;
JMenuBar MenuB;
JMenu SystemMenu,BookMGRMenu,BorrowBookMenu,ReturnBookMenu,
InfoBrowseMenu,UserMGRMenu;
JMenuItem UserLoginMenuItem,UserAddMenuItem,UserModifyMenuItem,
UserDeleteMenuItem,ExitMenuItem,BookAddMenuItem,BookModifyMenuItem,BookD
eleteMenuItem,
BorrowBookMenuItem,BorrowInfoMenuItem,ReturnBookMenuItem,ReturnInfoMenuIte
m,
BookListMenuItem,BorrowBookListMenuItem,UserListMenuItem;
JLabel titleLabel,AuthorLabel,DateLabel;
public MainWindow()
{
super("图书馆管理系统");
//--系统管理菜单--
MenuB=new JMenuBar();
SystemMenu=new JMenu("系统管理");
UserMGRMenu=new JMenu("用户管理");
UserLoginMenuItem=new JMenuItem("用户登录");
UserAddMenuItem=new JMenuItem("添加用户");
UserModifyMenuItem=new JMenuItem("修改用户");
UserDeleteMenuItem=new JMenuItem("删除用户");
ExitMenuItem=new JMenuItem("退出");
(UserLoginMenuItem);
(UserAddMenuItem);
(UserModifyMenuItem);
(UserDeleteMenuItem);
(UserMGRMenu);
(ExitMenuItem);
ionListener(this);
ionListener(this);
ionListener(this);
ionListener(this);
ionListener(this);
(SystemMenu);
//---书籍管理菜单--
BookMGRMenu=new JMenu("书籍管理");
BookAddMenuItem=new JMenuItem("添加书籍");
BookModifyMenuItem=new JMenuItem("修改书籍");
BookDeleteMenuItem=new JMenuItem("删除书籍");
(BookAddMenuItem);
(BookModifyMenuItem);
(BookDeleteMenuItem);
ionListener(this);
ionListener(this);
ionListener(this);


发布评论