• 大小: 245KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-15
  • 语言: Java
  • 标签: java程序  

资源简介

博客中的书店管理系统的代码就在这里,可以直接下载解压。

资源截图

代码片段和文件信息

package cn.hncu.xh.bookStore;

import java.awt.BorderLayout;
import java.awt.Event;
import java.awt.Point;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;

import javax.swing.JDialog;
import javax.swing.Jframe;
import javax.swing.JLabel;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.JPanel;
import javax.swing.KeyStroke;
import javax.swing.SwingConstants;
import javax.swing.SwingUtilities;

import cn.hncu.xh.bookStore.book.ui.BookListPanel;
import cn.hncu.xh.bookStore.in.ui.InListPanel;
import cn.hncu.xh.bookStore.login.ui.LoginPanel;
import cn.hncu.xh.bookStore.out.ui.OutListPanel;
import cn.hncu.xh.bookStore.stock.ui.StockListPanel;
import cn.hncu.xh.bookStore.user.ui.ListPanel;
import cn.hncu.xh.bookStore.util.JPanleUtil;

/**
 *

title:bookStore


 * @author xionghui
 * @date Aug 22 2015
 */
public class BookStore {

private Jframe jframe = null;  //  @jve:decl-index=0:visual-constraint=“9111“
private JPanel jContentPane = null;
private JMenuBar jJMenuBar = null;
private JMenu fileMenu = null;
private JMenu editMenu = null;
private JMenu helpMenu = null;
private JMenuItem exitMenuItem = null;
private JMenuItem aboutMenuItem = null;
private JMenuItem cutMenuItem = null;
private JMenuItem copyMenuItem = null;
private JMenuItem pasteMenuItem = null;
private JMenuItem saveMenuItem = null;
private JDialog aboutDialog = null;
private JPanel aboutContentPane = null;
private JLabel aboutVersionLabel = null;

private JMenu jMenuModel =null;
private JMenuItem jMenuItemUser = null;
private JMenuItem jMenuItemBook = null;
private JMenuItem jMenuItemIn = null;
private JMenuItem jMenuItemOut = null;
private JMenuItem jMenuItemStock = null;
private JMenuItem jMenuItemLogout = null;


/**
 * This method initializes jMenuModel1
 * 
 * @return javax.swing.JMenu
 */
private JMenu getJMenuModel() {
if (jMenuModel == null) {
jMenuModel = new JMenu();
jMenuModel.setText(“模块“);
jMenuModel.add(getJMenuItemUser());
jMenuModel.add(getJMenuItemBook());
jMenuModel.add(getJMenuItemIn());
jMenuModel.add(getJMenuItemOut());
jMenuModel.add(getJMenuItemStock());
jMenuModel.add(jMenuItemLogout());
}
return jMenuModel;
}


/**
 * This method initializes jMenuItemUser
 * 
 * @return javax.swing.JMenuItem
 */
public JMenuItem getJMenuItemUser() {
if (jMenuItemUser == null) {
jMenuItemUser = new JMenuItem();
jMenuItemUser.setText(“用户“);
jMenuItemUser.setEnabled(false);
jMenuItemUser.addActionListener(new java.awt.event.ActionListener(){
public void actionPerformed(ActionEvent e) {
JPanleUtil.changePanel(jframe new ListPanel(jframe));
}

});
}
return jMenuItemUser;
}

/**
 * This method initializes jMenuItemBook

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        232  2015-08-27 19:48  BookStore\.classpath

     文件        505  2015-08-22 15:29  BookStore\.project

     文件        630  2015-08-21 15:56  BookStore\.settings\org.eclipse.jdt.core.prefs

     文件        686  2015-08-31 22:13  BookStore\bin\cn\hncu\xh\bookStore\book\business\ebi\BookEbi.class

     文件       2804  2015-08-31 22:13  BookStore\bin\cn\hncu\xh\bookStore\book\business\ebo\BookEbo.class

     文件        530  2015-08-31 22:13  BookStore\bin\cn\hncu\xh\bookStore\book\business\factory\BookEbiFactory.class

     文件        661  2015-08-31 22:13  BookStore\bin\cn\hncu\xh\bookStore\book\dao\dao\BookDao.class

     文件        518  2015-08-31 22:13  BookStore\bin\cn\hncu\xh\bookStore\book\dao\factory\BookDaoFactory.class

     文件       3535  2015-08-31 22:13  BookStore\bin\cn\hncu\xh\bookStore\book\dao\impl\BookDaoSerImpl.class

     文件       2678  2015-08-31 22:13  BookStore\bin\cn\hncu\xh\bookStore\book\ui\BookAddPanel$1.class

     文件       1108  2015-08-31 22:13  BookStore\bin\cn\hncu\xh\bookStore\book\ui\BookAddPanel$2.class

     文件       3660  2015-08-31 22:13  BookStore\bin\cn\hncu\xh\bookStore\book\ui\BookAddPanel.class

     文件       1789  2015-08-31 22:13  BookStore\bin\cn\hncu\xh\bookStore\book\ui\BookDeletePanel$1.class

     文件       1129  2015-08-31 22:13  BookStore\bin\cn\hncu\xh\bookStore\book\ui\BookDeletePanel$2.class

     文件       4872  2015-08-31 22:13  BookStore\bin\cn\hncu\xh\bookStore\book\ui\BookDeletePanel.class

     文件       1113  2015-08-31 22:13  BookStore\bin\cn\hncu\xh\bookStore\book\ui\BookListPanel$1.class

     文件       1644  2015-08-31 22:13  BookStore\bin\cn\hncu\xh\bookStore\book\ui\BookListPanel$2.class

     文件       1645  2015-08-31 22:13  BookStore\bin\cn\hncu\xh\bookStore\book\ui\BookListPanel$3.class

     文件       1117  2015-08-31 22:13  BookStore\bin\cn\hncu\xh\bookStore\book\ui\BookListPanel$4.class

     文件       4689  2015-08-31 22:13  BookStore\bin\cn\hncu\xh\bookStore\book\ui\BookListPanel.class

     文件       3120  2015-08-31 22:13  BookStore\bin\cn\hncu\xh\bookStore\book\ui\BookQueryPanel$1.class

     文件       1122  2015-08-31 22:13  BookStore\bin\cn\hncu\xh\bookStore\book\ui\BookQueryPanel$2.class

     文件       4957  2015-08-31 22:13  BookStore\bin\cn\hncu\xh\bookStore\book\ui\BookQueryPanel.class

     文件       2792  2015-08-31 22:13  BookStore\bin\cn\hncu\xh\bookStore\book\ui\BookUpdatePanel$1.class

     文件       1129  2015-08-31 22:13  BookStore\bin\cn\hncu\xh\bookStore\book\ui\BookUpdatePanel$2.class

     文件       4949  2015-08-31 22:13  BookStore\bin\cn\hncu\xh\bookStore\book\ui\BookUpdatePanel.class

     文件       2170  2015-08-31 22:13  BookStore\bin\cn\hncu\xh\bookStore\book\vo\BookModel.class

     文件        758  2015-08-31 22:13  BookStore\bin\cn\hncu\xh\bookStore\book\vo\BookQueryModel.class

     文件       1043  2015-08-31 22:13  BookStore\bin\cn\hncu\xh\bookStore\BookStore$1.class

     文件       1047  2015-08-31 22:13  BookStore\bin\cn\hncu\xh\bookStore\BookStore$2.class

............此处省略355个文件信息

评论

共有 条评论