声明: 本系统是基于 C/S 的图书管理系统,主要使用的是 Oracle 数据库, 下面附所有实现代码 package library; import ; import ; import ; import ; import ; import ; import ; import ; import ; import ; import ; import ; import ; public class book_add extends JFrame implements ActionListener{ DataBaseManager db=new DataBaseManager(); ResultSet rs; JPanel panel1,panel2; JLabel book_id_label,book_name_label,author_label, press_label,press_date_label,price_label,book_num_label,borrowed_num_label,a ddress; JTextField book_id_TextField,book_name_TextField,author_TextField, press_TextField,press_date_TextField,price_TextField,book_num_TextField, borrowed_count; JComboBox addresst; Container c; JButton clear,add,exit; public book_add() { super(" 添加图书信息"); c=getContentPane(); (new BorderLayout()); book_id_label=new JLabel(" 编号",); book_name_label=new JLabel(" 名称",); author_label=new JLabel(" 作者",); press_label=new JLabel(" 出版社",); press_date_label=new JLabel(" 出版日期",); price_label=new JLabel(" 价格",); book_num_label=new JLabel(" 库存数",); borrowed_num_label=new JLabel(" 已借阅数",); address=new JLabel(" 藏书地址",); book_id_TextField=new JTextField(15); book_name_TextField=new JTextField(15); author_TextField=new JTextField(15); press_TextField=new JTextField(15); press_date_TextField=new JTextField(15); price_TextField=new JTextField(15); book_num_TextField=new JTextField(15); borrowed_count=new JTextField(15); ("0"); addresst=new JComboBox(); (" 扬子津图书馆"); (" 荷花池图书馆"); (" 瘦西湖图书馆"); (" 淮海路图书馆"); panel1=new JPanel(); (new GridLayout(9,2))
(参考)基于java的图书管理系统源代码 来自淘豆网m.daumloan.com转载请标明出处.