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

资源简介

java平台下的图书馆管理系统、可设置连接使用指定数据库服务器,能实现图书馆的图书信息管理、借阅信息管理和用户信息管理

资源截图

代码片段和文件信息

/*
 * To change this template choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author LiJun
 */
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.sql.*;
import java.sql.Date;
import java.text.SimpleDateFormat;
public class base_frame extends Jframe implements ActionListener{
      //窗口监听器  
    private class WindowCloser extends WindowAdapter{
        public void windowClosing(WindowEvent we){
            System.exit(0);
        }
    }
    
     String driverClassName=“com.microsoft.sqlserver.jdbc.SQLServerDriver“;
     
     String url=“jdbc:sqlserver://localhost:1433;databaseName=“;
     String password=“007“;
     String username=“sa“;
     Connection con=null;
    
 //       主界面所用控件
  private  MenuItem exit=new MenuItem(“退出“);
  private  MenuItem rlogin=new MenuItem(“退回登陆“);
  private  MenuItem help=new MenuItem(“Help“);
  private Menu oper=new Menu(“操作“);
  private Menu Help=new Menu(“帮助“);
  private MenuBar munu=new MenuBar();
  public CardLayout card = null;
  public JPanel pane = null;
  public  JPanel login =new JPanel();
  public  JPanel regin =new JPanel();
  public  JPanel user =new JPanel();
  public  JPanel administrator =new JPanel();
  public  JPanel admin_scBook =new JPanel();
  public  JPanel admin_scRecor =new JPanel();
  public  JPanel admin_bookAdd =new JPanel();
  public  JPanel administrator_borrow =new JPanel();
  //    user界面所用控件
  private JTextField user_UserID;
  private TextArea user_text_infor;
  //    administrator界面所用控件
  private JButton administrator_Buttonbook_scanadministrator_Buttonborrow_scanadministrator_Buttonborrow_manageadministrator_BtnBookAdd;
    //    administrator_borrow界面所用控件
  private JButton  administrator_borrow_Btnrtnadministrator_borrow_Btncomeadministrator_borrow_Btngo;
  private JTextField administrator_borrow_Tfuseradministrator_borrow_Tfbook;
  //    admin_scBook界面所用控件
  private JButton admin_scBook_jbtnokadmin_scBook_jbtnalladmin_scBook_btnrtn;
  private JTextField admin_scBook_txtfbookname;
  private JTextArea admin_scBook_txtabookinfor;
  //    admin_scRecor界面所用控件
  private JButton admin_scRecor_jbtnokadmin_scRecor_jbtnalladmin_scRecor_btnrtn;
  private JTextField admin_scRecor_txtfuserid;
  private JTextArea admin_scRecor_txtaborrowinfor;
  //========admin_bookAdd界面中的控件==========================================================================================================//
  private JTextField txtbook_infor_name=new JTextField(20);//图书的名称:
     private JTextField txtbook_infor_name1=new JTextField(20);//删除图书的名称
    private JTextField txtbook_infor_number=new JTextField(20);//图书数量:
    private JButton book_infor_add=new JButton(“增加图书“);
    private JButton book_infor_delete=new JButton(“删除数目“);
   /*=======================login的控件定义======================================================*/
    private JTextField login_txtuserid=new JTex

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

     文件          0  2011-11-23 14:23  DatebaseHomework\build\classes\.netbeans_automatic_build

     文件        181  2011-11-30 16:38  DatebaseHomework\build\classes\base_frame$1.class

     文件        807  2011-11-30 16:38  DatebaseHomework\build\classes\base_frame$WindowCloser.class

     文件      21257  2011-11-30 16:38  DatebaseHomework\build\classes\base_frame.class

     文件       1535  2011-11-27 15:17  DatebaseHomework\build\classes\DBConn.class

     文件       1973  2011-11-27 15:17  DatebaseHomework\build\classes\odbcSelex.class

     文件       3743  2011-11-22 22:19  DatebaseHomework\build.xml

     文件         85  2011-11-20 13:41  DatebaseHomework\manifest.mf

     文件      57059  2011-11-22 22:19  DatebaseHomework\nbproject\build-impl.xml

     文件        475  2011-11-22 22:19  DatebaseHomework\nbproject\genfiles.properties

     文件          0  2011-11-22 22:19  DatebaseHomework\nbproject\private\config.properties

     文件        370  2011-11-27 15:17  DatebaseHomework\nbproject\private\private.properties

     文件        211  2011-11-30 16:39  DatebaseHomework\nbproject\private\private.xml

     文件       2464  2011-11-25 15:44  DatebaseHomework\nbproject\project.properties

     文件        571  2011-11-22 22:19  DatebaseHomework\nbproject\project.xml

     文件      32962  2011-11-30 16:38  DatebaseHomework\src\base_frame.java

     文件        946  2011-11-20 16:40  DatebaseHomework\src\DBConn.java

     文件        896  2011-11-21 20:23  DatebaseHomework\src\odbcSelex.java

     目录          0  2011-11-30 16:38  DatebaseHomework\build\classes

     目录          0  2011-11-30 16:39  DatebaseHomework\nbproject\private

     目录          0  2011-11-27 15:17  DatebaseHomework\build

     目录          0  2011-11-27 15:17  DatebaseHomework\nbproject

     目录          0  2011-11-30 16:38  DatebaseHomework\src

     目录          0  2011-11-27 15:17  DatebaseHomework

----------- ---------  ---------- -----  ----

               125535                    24


评论

共有 条评论

相关资源