第一范文网 - 专业文章范例文档资料分享平台

基于Java的图书馆管理系统毕业设计(论文)

来源:用户分享 时间:2025/7/5 23:45:12 本文由loading 分享 下载这篇文档手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:xxxxxxx或QQ:xxxxxx 处理(尽可能给您提供完整文档),感谢您的支持与谅解。

咸阳职业技术学院电子信息系专科毕业论文

sys_br_return.setActionCommand(\

sys_br_borrow_count.setActionCommand(\sys_br_return_count.setActionCommand(\sys_help.setActionCommand(\sys_about.setActionCommand(\//为子菜单设置ActionCommand结束 //为子菜单添加事件监听器开始

sys_relogin.addActionListener(menuitemActionListener); sys_updatePassword.addActionListener(menuitemActionListener); sys_exit.addActionListener(menuitemActionListener); book_add.addActionListener(menuitemActionListener); book_manager.addActionListener(menuitemActionListener); book_query.addActionListener(menuitemActionListener); reader_add.addActionListener(menuitemActionListener); reader_manager.addActionListener(menuitemActionListener); reader_query.addActionListener(menuitemActionListener); sys_br_borrow.addActionListener(menuitemActionListener); sys_br_return.addActionListener(menuitemActionListener);

sys_br_borrow_count.addActionListener(menuitemActionListener); sys_br_return_count.addActionListener(menuitemActionListener);

sys_help.addActionListener(menuitemActionListener); sys_about.addActionListener(menuitemActionListener); //为菜单添加菜单项

sys_menu.add(sys_relogin); sys_menu.add(sys_updatePassword); sys_menu.addSeparator(); sys_menu.add(sys_exit); book_menu.add(book_add); book_menu.add(book_manager); book_menu.add(book_query);

第 24 页 共 35 页

咸阳职业技术学院电子信息系专科毕业论文

reader_menu.add(reader_add); reader_menu.add(reader_manager); reader_menu.add(reader_query); book_borrow.add(sys_br_borrow); book_borrow.add(sys_br_return); book_borrow.add(sys_br_borrow_count); book_borrow.add(sys_br_return_count); about_menu.add(sys_help); about_menu.add(sys_about); //为菜单栏添加菜单 menuBar.add(sys_menu); menuBar.add(book_menu); menuBar.add(reader_menu); menuBar.add(book_borrow); menuBar.add(about_menu);

//为窗口设置菜单栏

this.setJMenuBar(menuBar);

//为组键添加

ImageIcon

image=new

ImageIcon(this.getClass().getResource(\

JLabel labimage=new JLabel(image);

labimage.setBounds(0,0,image.getIconWidth(),image.getIconHeight());

desktop.add(labimage);

this.getContentPane().add(desktop); }

ActionListener menuitemActionListener=new ActionListener(){ public void actionPerformed(ActionEvent event) {

String command = event.getActionCommand(); System.out.println(command); if(command.equals(\

第 25 页 共 35 页

咸阳职业技术学院电子信息系专科毕业论文

//注消登录 relogin(); return; }

if(command.equals(\//系统退出 }

//修改密码

if (command.equals(\ }

if(command.equals(\ BookAdd ba=new BookAdd(); desktop.add(ba);

desktop.getDesktopManager().activateFrame(ba); }

if(command.equals(\ }

if (command.equals(\ }

if(command.equals(\

第 26 页 共 35 页

exitLogin(); return;

updatepassword(); return;

Reader_Add Re=new Reader_Add(); desktop.add(Re);

desktop.getDesktopManager().activateFrame(Re);

BookinfoManager BM =new BookinfoManager(); desktop.add(BM);

desktop.getDesktopManager().activateFrame(BM);

咸阳职业技术学院电子信息系专科毕业论文

}

ReaderManager RM=new ReaderManager(); desktop.add(RM);

desktop.getDesktopManager().activateFrame(RM);

if (command.equals(\ Bookquery BQ=new Bookquery(); desktop.add(BQ);

desktop.getDesktopManager().activateFrame(BQ); }

if (command.equals(\ }

if (command.equals(\ }

if (command.equals(\ }

if (command.equals(\ }

if (command.equals(\

第 27 页 共 35 页

Bookborrow BB=new Bookborrow(); desktop.add(BB);

desktop.getDesktopManager().activateFrame(BB);

BookReturn BR=new BookReturn(); desktop.add(BR);

desktop.getDesktopManager().activateFrame(BR);

Bookborrowcount BC=new Bookborrowcount(); desktop.add(BC);

desktop.getDesktopManager().activateFrame(BC);

BookReturncount BC=new BookReturncount(); desktop.add(BC);

desktop.getDesktopManager().activateFrame(BC);

基于Java的图书馆管理系统毕业设计(论文).doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.diyifanwen.net/c60f3k4c33t10ttd0odw6_7.html(转载请注明文章来源)
热门推荐
Copyright © 2012-2023 第一范文网 版权所有 免责声明 | 联系我们
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:xxxxxx 邮箱:xxxxxx@qq.com
渝ICP备2023013149号
Top