• 大小: 559KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-05-21
  • 语言: 其他
  • 标签:

资源简介

很好的Eclipse做的图书管理系统噢~

资源截图

代码片段和文件信息

package library.book;


import java.util.GregorianCalendar;
import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.Jframe;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.JOptionPane;

import library.main.HibernateUtil;
import library.hibernate.Books;

import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;

public class BookAdd extends Jframe implements ActionListener {
Container container;
JPanel panel1panel2;
JLabel bookNameLabel pressNameLabelauthorLabeladdressLabelpressDateLabel
priceLabelbookCountLabelcommentLabel;
JTextField bookNameText pressNameTextauthorTextaddressTextpressDateText
priceTextbookCountTextcommentText;
JButton clearButtonaddButtonexitButton;
    public  BookAdd() {
     super(“添加书籍信息“);
     container=getContentPane();
     container.setLayout(new BorderLayout());
    
     bookNameLabel=new JLabel(“名称“JLabel.CENTER);
     pressNameLabel=new JLabel(“出版社“JLabel.CENTER);
     authorLabel=new JLabel(“作者“JLabel.CENTER);
     addressLabel=new JLabel(“地址“JLabel.CENTER);
     pressDateLabel=new JLabel(“出版日期“JLabel.CENTER);
     priceLabel=new JLabel(“价钱“JLabel.CENTER);
     bookCountLabel=new JLabel(“新书数目“JLabel.CENTER);
     commentLabel=new JLabel(“备注“JLabel.CENTER);
     bookNameText=new JTextField(15);
     pressNameText=new JTextField(15);
     authorText=new JTextField(15);
     addressText=new JTextField(15);
     pressDateText=new JTextField(15);
     priceText=new JTextField(15);
     bookCountText=new JTextField(15);
     commentText=new JTextField(15);
    
     panel1=new JPanel();
     panel1.setLayout(new GridLayout(82));
    
     panel1.add(bookNameLabel);
     panel1.add(bookNameText);
     panel1.add(pressNameLabel);
     panel1.add(pressNameText);
     panel1.add(authorLabel);
     panel1.add(authorText);
     panel1.add(addressLabel);
     panel1.add(addressText);
     panel1.add(pressDateLabel);
     panel1.add(pressDateText);
     panel1.add(priceLabel);
     panel1.add(priceText);
     panel1.add(bookCountLabel);
     panel1.add(bookCountText);
     panel1.add(commentLabel);
     panel1.add(commentText);
    
     panel2=new JPanel();
     panel2.setLayout(new GridLayout(13));
     clearButton=new JButton(“清空“);
     addButton=new JButton(“添加“);
     exitButton=new JButton(“退出“);
     panel2.add(clearButton);
     panel2.add(addButton);
     panel2.add(exitButton);       
     clearButton.addActionListener(this);
     addButton.addActionListener(this);
     exitButton.addActionListener(this);  
     container.add(panel1BorderLayout.CENTER);
     container.add(panel2BorderLayout.SOUTH);
    
    }
public void actionPerformed(Action

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

     文件        612  2009-03-18 23:14  Library\Library\.classpath

     文件        420  2009-03-23 14:52  Library\Library\.myhibernatedata

     文件        717  2009-03-18 23:14  Library\Library\.project

     文件       4926  2009-06-27 10:23  Library\Library\bin\library\book\BookAdd.class

     文件       2747  2009-06-27 10:23  Library\Library\bin\library\book\BookDelete.class

     文件       5977  2009-06-27 10:23  Library\Library\bin\library\book\BookList.class

     文件       6091  2009-06-27 10:23  Library\Library\bin\library\book\BookModify.class

     文件       5073  2009-06-27 10:23  Library\Library\bin\library\book\BorrowBook.class

     文件       5466  2009-06-27 10:23  Library\Library\bin\library\book\BorrowBookList.class

     目录          0  2009-06-27 10:23  Library\Library\bin\library\book

     文件       2023  2009-06-27 10:23  Library\Library\bin\library\hibernate\AbstractBookbrowse.class

     文件       2819  2009-06-27 10:23  Library\Library\bin\library\hibernate\AbstractBooks.class

     文件       1251  2009-06-27 10:23  Library\Library\bin\library\hibernate\AbstractUserTable.class

     文件        815  2009-06-27 10:23  Library\Library\bin\library\hibernate\Bookbrowse.class

     文件       1242  2009-03-23 14:52  Library\Library\bin\library\hibernate\Bookbrowse.hbm.xml

     文件        959  2009-06-27 10:23  Library\Library\bin\library\hibernate\Books.class

     文件       1609  2009-03-23 14:52  Library\Library\bin\library\hibernate\Books.hbm.xml

     文件        668  2009-06-27 10:23  Library\Library\bin\library\hibernate\UserTable.class

     文件        835  2009-03-23 14:52  Library\Library\bin\library\hibernate\UserTable.hbm.xml

     目录          0  2009-06-27 10:23  Library\Library\bin\library\hibernate

     文件       5089  2009-06-27 10:23  Library\Library\bin\library\info\BorrowInfo.class

     文件       4842  2009-06-27 10:23  Library\Library\bin\library\info\ReturnedBook.class

     文件       5050  2009-06-27 10:23  Library\Library\bin\library\info\ReturnInfo.class

     目录          0  2009-06-27 10:23  Library\Library\bin\library\info

     文件       1334  2009-06-27 10:23  Library\Library\bin\library\main\HibernateUtil.class

     文件       8444  2009-06-27 10:23  Library\Library\bin\library\main\LibraryWindow.class

     目录          0  2009-06-27 10:23  Library\Library\bin\library\main

     文件       1312  2009-06-27 10:23  Library\Library\bin\library\test\Test.class

     目录          0  2009-06-27 10:23  Library\Library\bin\library\test

     文件       4074  2009-06-27 10:23  Library\Library\bin\library\user\UserAdd.class

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

评论

共有 条评论