![04期刊管理系統(tǒng)系統(tǒng)實現(xiàn)_第1頁](http://file4.renrendoc.com/view/fe723508f7360db62edaba8122773ac1/fe723508f7360db62edaba8122773ac11.gif)
![04期刊管理系統(tǒng)系統(tǒng)實現(xiàn)_第2頁](http://file4.renrendoc.com/view/fe723508f7360db62edaba8122773ac1/fe723508f7360db62edaba8122773ac12.gif)
![04期刊管理系統(tǒng)系統(tǒng)實現(xiàn)_第3頁](http://file4.renrendoc.com/view/fe723508f7360db62edaba8122773ac1/fe723508f7360db62edaba8122773ac13.gif)
![04期刊管理系統(tǒng)系統(tǒng)實現(xiàn)_第4頁](http://file4.renrendoc.com/view/fe723508f7360db62edaba8122773ac1/fe723508f7360db62edaba8122773ac14.gif)
![04期刊管理系統(tǒng)系統(tǒng)實現(xiàn)_第5頁](http://file4.renrendoc.com/view/fe723508f7360db62edaba8122773ac1/fe723508f7360db62edaba8122773ac15.gif)
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
目錄1系統(tǒng)登錄界面.........................................................21.1讀者查問主界面.........................................................5個人借閱查問界面..................................................................................7庫存期刊查問界面..................................................................................9期刊去處查問界面................................................................................11改正密碼界面........................................................................................141.2管理員主界面...........................................................17讀者管理界面........................................................................................19增添用戶界面....................................................................................22刪除用戶界面....................................................................................25改正用戶界面....................................................................................27期刊管理界面........................................................................................30增添期刊界面....................................................................................33刪除期刊界面....................................................................................36庫存期刊查問界面............................................................................39期刊去處查問界面............................................................................41借閱管理界面........................................................................................44改正密碼界面........................................................................................47“期刊管理系統(tǒng)”系統(tǒng)實現(xiàn)本系統(tǒng)用Java語言來實現(xiàn)。集成開發(fā)環(huán)境采納JBuilder2008,數(shù)據(jù)庫采納MySql。系統(tǒng)登錄界面第一,有一個“系統(tǒng)登錄”窗體,依據(jù)用戶所輸入的用戶名來判斷是讀者仍是管理員,并分別切換至“讀者查問主界面”或“管理員主界面”。圖1系統(tǒng)登錄界面package
.hpu.lq;importimportimportimportimportimportimportimport
java.awt.Font;java.awt.event.ActionEvent;java.awt.event.ActionListener;javax.swing.JButton;javax.swing.JFrame;javax.swing.JLabel;javax.swing.JPasswordField;javax.swing.JTextField;publicclassLoginApplication{privateJFrameframe;privatefinalJLabellbl_login=newJLabel( );privatefinalJLabellbl_name=newJLabel( );privatefinalJLabellbl_password=newJLabel( );privatefinalJTextFieldtextField=newJTextField( );privatefinalJPasswordFieldpasswordField=newJPasswordField( );privatefinalJButtonbutton=newJButton( );privatefinalJButtonbtn_exit=newJButton( );/**Launchtheapplication@paramargs*/publicstaticvoidmain(Stringargs[]){try{LoginApplicationwindow=newLoginApplication( );window.frame.setVisible(true);}catch(Exceptione){e.printStackTrace( );}}/**Createtheapplication*/publicLoginApplication( ){jbInit( );}/**Initializethecontentsoftheframe*/privatevoidjbInit( ){frame=newJFrame( );frame.setTitle("期刊管理系統(tǒng)");frame.getContentPane( ).setLayout(null);frame.setBounds(100,100,500,375);frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);frame.getContentPane( ).add(lbl_login);lbl_login.setFont(newFont("",Font.BOLD,22));lbl_login.setText("系統(tǒng)登錄");lbl_login.setBounds(188,44,92,40);frame.getContentPane( ).add(lbl_name);lbl_name.setText("用戶名:");lbl_name.setBounds(90,117,66,18);frame.getContentPane( ).add(lbl_password);lbl_password.setText("密碼:");lbl_password.setBounds(103,158,53,18);frame.getContentPane( ).add(textField);textField.setBounds(167,115,176,22);frame.getContentPane( ).add(passwordField);passwordField.setBounds(167,156,176,22);frame.getContentPane( ).add(button);button.setText("登錄");button.setBounds(98,231,106,28);frame.getContentPane( ).add(btn_exit);btn_exit.addActionListener(newBtn_exitActionListener( ));btn_exit.setText("退出");btn_exit.setBounds(232,231,106,28);}privateclassBtn_exitActionListenerimplementsActionListener{publicvoidactionPerformed(ActionEvente){btn_exit_actionPerformed(e);}}protectedvoidbtn_exit_actionPerformed(ActionEvente){System.exit(0);}}1.1讀者查問主界面圖2讀者查問主界面.hpu.lq;importimport
javax.swing.JButton;javax.swing.JFrame;public
class
ReaderFrame
extends
JFrame{privatefinalJButtonbutton=newJButton( );privatefinalJButtonbutton_1=newJButton( );privatefinalJButtonbutton_2=newJButton( );/**Launchtheapplication@paramargs*/publicstaticvoidmain(Stringargs[]){try{ReaderFrameframe=newReaderFrame( );frame.setVisible(true);}catch(Exceptione){e.printStackTrace( );}}/**Createtheframe*/publicReaderFrame( ){super( );setBounds(100,100,500,375);setDefaultCloseOperation(JFrame.try{jbInit( );}catch(Throwablee){e.printStackTrace( );
EXIT_ON_CLOSE);}//}privatevoidjbInit( )throwsgetContentPane( ).setLayout(
Exception{null);setTitle(
"讀者查問");getContentPane( ).add(
button
);buttonbutton
.setText("個人借閱查問");.setBounds(135,77,147,28);getContentPane( ).add(button_1);button_1.setText("庫存期刊查問");button_1.setBounds(135,147,147,28);getContentPane( ).add(button_2);button_2.setText("期刊去處查問");button_2.setBounds(135,216,147,28);}}1.1.1個人借閱查問界面圖3個人借閱查問主界面.hpu.lq;importjavax.swing.JButton;importjavax.swing.JFrame;importjavax.swing.JScrollPane;importjavax.swing.JTable;importjavax.swing.table.DefaultTableModel;publicclass個人借閱查問extendsJFrame{String[]
columNames
={
"用戶名","期刊名","年份","期號","借出日期","應還日期"};Object[][]{""
,""
data={,"",""}};DefaultTableModelDefaultTableModel(privatefinal
dtm=newdata,columNames);JTabletable=newJTable(
dtm);privatefinalJScrollPanescrollPane=newJScrollPane( );privatefinalJButtonbutton=newJButton( );/***Launchtheapplication*@paramargs*/publicstaticvoidmain(Stringargs[]){try{個人借閱查問frame=new個人借閱查問( );frame.setVisible(true);}catch(Exceptione){e.printStackTrace( );}}/***Createtheframe*/public個人借閱查問( ){super( );setBounds(100,100,500,375);setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);try{jbInit( );}catch(Throwablee){e.printStackTrace( );}//}privatevoidjbInit( )throwsException{getContentPane( ).setLayout(null);setTitle("個人借閱查問");getContentPane( ).add(scrollPane);scrollPane.setBounds(0,0,484,254);scrollPane.setViewportView(table);getContentPane( ).add(button);button.setText("返回");button.setBounds(89,276,106,28);}}1.1.2庫存期刊查問界面圖4庫存期刊查問界面.hpu.lq;importjavax.swing.JButton;importjavax.swing.JFrame;importjavax.swing.JScrollPane;importjavax.swing.JTable;importjavax.swing.table.DefaultTableModel;publicclass庫存期刊查問extendsJFrame{String[]columNames={"CN刊號","期刊名","期刊年份","數(shù)目"};Object[][]data={{"","","",""}};DefaultTableModeldtm=newDefaultTableModel(data,columNames);privatefinalJTabletable=newJTable(dtm);privatefinalJScrollPanescrollPane=newJScrollPane( );privatefinalJButtonbutton=newJButton( );/***Launchtheapplication@paramargs*/publicstatictry{
voidmain(Stringargs[]){庫存期刊查問
frame=
new
庫存期刊查問
( );frame.setVisible(
true
);}catch(Exceptione){e.printStackTrace( );}}/***Create
the
frame*/public
庫存期刊查問( ){super( );setBounds(100,100,500,375);setDefaultCloseOperation(JFrame.try{jbInit( );}catch(Throwablee){e.printStackTrace( );
EXIT_ON_CLOSE);}//}private
void
jbInit( )
throws
Exception{getContentPane( ).setLayout(
null
);setTitle(
"庫存期刊查問
");getContentPane( ).add(scrollPanescrollPane.setBounds(0,0,484,231);
);table.hashCode( );scrollPane.setViewportView(
table
);getContentPane( ).add(
button
);button.setText("返回");button.setBounds(115,267,106,28);}}1.1.3期刊去處查問界面圖5期刊去處查問.hpu.lq;importjavax.swing.JButton;importjavax.swing.JComboBox;importjavax.swing.JFrame;importjavax.swing.JLabel;publicclass期刊去處查問extendsJFrame{privatefinalJLabellabel=newJLabel( );privatefinalJLabellabel_1=newJLabel( );privatefinalJLabellabel_2=newJLabel( );privatefinalJComboBoxcomboBox=newJComboBox( );privatefinalJComboBoxcomboBox_1=newJComboBox( );privatefinalJComboBoxcomboBox_2=newJComboBox( );privatefinalJButtonbutton=newJButton( );privatefinalJButtonbutton_1=newJButton( );/**Launchtheapplication@paramargs*/publicstaticvoidmain(Stringargs[]){try{期刊去處查問
frame=
new
期刊去處查問
( );frame.setVisible(
true
);}catch(Exceptione){e.printStackTrace( );}}/**Createtheframe*/public
期刊去處查問( ){super( );setBounds(100,100,500,375);setDefaultCloseOperation(JFrame.try{jbInit( );}catch(Throwablee){e.printStackTrace( );
EXIT_ON_CLOSE);}//}private
void
jbInit( )
throws
Exception{getContentPane( ).setLayout(null);setTitle("期刊去處查問");getContentPane( ).add(label);label.setText("期刊名稱:");label.setBounds(109,61,66,18);getContentPane( ).add(label_1);label_1.setText("期刊年份:");label_1.setBounds(109,119,66,18);getContentPane( ).add(label_2);label_2.setText("期刊期號:");label_2.setBounds(109,177,66,18);getContentPane( ).add(comboBox);comboBox.setBounds(217,57,142,27);getContentPane( ).add(comboBox_1);comboBox_1.setBounds(217,115,142,27);getContentPane( ).add(comboBox_2);comboBox_2.setBounds(217,173,142,27);getContentPane( ).add(button);button.setText("去處查問");button.setBounds(109,240,106,28);getContentPane( ).add(button_1);button_1.setText("封閉");button_1.setBounds(253,240,106,28);}}1.1.4改正密碼界面圖6改正密碼界面.hpu.lq;importimportimportimportimportimport
java.awt.event.ActionEvent;java.awt.event.ActionListener;javax.swing.JButton;javax.swing.JFrame;javax.swing.JLabel;javax.swing.JPasswordField;publicclassChangePassWordFrameextendsJFrame{privatefinalJLabellbl_oldpwd=newJLabel( );privatefinalJLabellbl_newpwd=newJLabel( );privatefinalJLabellbl_confirmpwd=newJLabel( );privatefinalJPasswordFieldpasswordField=newJPasswordField( );privatefinalJPasswordFieldpasswordField_1=newJPasswordField( );privatefinalJPasswordFieldpasswordField_2=newJPasswordField( );privatefinalJButtonbtn_confirmButton=newJButton( );privatefinalJButtonbtn_exit=newJButton( );/**Launchtheapplication@paramargs*/publicstaticvoidmain(Stringargs[]){try{ChangePassWordFrameframe=newChangePassWordFrame( );frame.setVisible(true);}catch(Exceptione){e.printStackTrace( );}}/**Createtheframe*/publicChangePassWordFrame( ){super( );setBounds(100,100,500,375);setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);try{jbInit( );}catch(Throwablee){e.printStackTrace( );}//}privatevoidjbInit( )throwsException{getContentPane( ).setLayout(null);setTitle("密碼改正");getContentPane( ).add(lbl_oldpwd);lbl_oldpwd.setText("舊密碼:");lbl_oldpwd.setBounds(124,82,66,18);getContentPane( ).add(lbl_newpwd);lbl_newpwd.setText("新密碼:");lbl_newpwd.setBounds(124,135,66,18);getContentPane( ).add(lbl_confirmpwd);lbl_confirmpwd.setText("確認新密碼:");lbl_confirmpwd.setBounds(97,182,93,18);getContentPane( ).add(passwordField);passwordField.setBounds(196,80,157,22);getContentPane( ).add(passwordField_1);passwordField_1.setBounds(196,133,157,22);getContentPane( ).add(passwordField_2);passwordField_2.setBounds(196,180,157,22);getContentPane( ).add(btn_confirmButton);btn_confirmButton.addActionListener(newBtn_confirmButtonActionListener( ));btn_confirmButton.setText("確立");btn_confirmButton.setBounds(119,250,106,28);getContentPane( ).add(btn_exit);btn_exit.addActionListener(newBtn_exitActionListener( ));btn_exit.setText("退出");btn_exit.setBounds(247,250,106,28);}privateclassBtn_confirmButtonActionListenerActionListener{publicvoidactionPerformed(ActionEvente){btn_confirmButton_actionPerformed(e);
implements}}private
class
Btn_exitActionListener
implements
ActionListener{publicvoidactionPerformed(ActionEvente){btn_exit_actionPerformed(e);}}protectedvoidbtn_confirmButton_actionPerformed(ActionEvente){}protectedvoidbtn_exit_actionPerformed(ActionEvente){System.exit(0);}}1.2管理員主界面圖7管理員主界面.hpu.lq;importimport
javax.swing.JButton;javax.swing.JFrame;public
class
ManagerFrame
extends
JFrame{privatefinalJButtonprivatefinalJButtonprivatefinalJButton/**
buttonbutton_1button_2
=newJButton( );=newJButton( );=newJButton( );Launchtheapplication@paramargs*/publicstaticvoidmain(Stringargs[]){try{ManagerFrameframe=newManagerFrame( );frame.setVisible(true);}catch(Exceptione){e.printStackTrace( );}}/**Createtheframe*/publicManagerFrame( ){super( );setBounds(100,100,500,375);setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);try{jbInit( );}catch(Throwablee){e.printStackTrace( );}//}privatevoidjbInit( )throwsException{getContentPane( ).setLayout(null);setTitle("管理員查問");getContentPane( ).add(button);button.setText("讀者管理");button.setBounds(148,57,147,28);getContentPane( ).add(button_1);button_1.setText("期刊管理");button_1.setBounds(148,127,147,28);getContentPane( ).add(button_2);button_2.setText("借閱管理");button_2.setBounds(148,199,147,28);}}1.2.1讀者管理界面圖8讀者管理界面.hpu.lq;importjavax.swing.JButton;importjavax.swing.JFrame;importjavax.swing.JPanel;importjavax.swing.JScrollPane;importjavax.swing.JTable;importjavax.swing.table.DefaultTableModel;publicclass讀者管理extendsJFrame{String[]columNames={"用戶名","密碼","權(quán)限"};Object[][]data={{"","","",""}};DefaultTableModeldtm=newDefaultTableModel(data,columNames);privatefinalJTabletable=newJTable(dtm);privatefinalJScrollPanescrollPane=newJScrollPane( );privatefinalJPanelpanel=newJPanel( );privatefinalJButtonbutton=newJButton( );privatefinalJButtonbutton_1=newJButton( );privatefinalJButtonbutton_2=newJButton( );privatefinalJButtonbutton_3=newJButton( );/***Launchtheapplication@paramargs*/publicstatictry{
voidmain(Stringargs[]){讀者管理
frame=
new讀者管理
( );frame.setVisible(
true
);}catch(Exceptione){e.printStackTrace( );}}/***Createtheframe*/public
讀者管理( ){super( );setBounds(100,100,500,375);setDefaultCloseOperation(JFrame.try{jbInit( );}catch(Throwablee){e.printStackTrace( );
EXIT_ON_CLOSE);}//}privatevoidjbInit( )throwsgetContentPane( ).setLayout(
Exception{null);setTitle(
"讀者管理");getContentPane( ).add(scrollPanescrollPane.setBounds(0,0,484,234);
);table.hashCode( );scrollPane.setViewportView(table);getContentPane( ).add(panel);panel.setBounds(0,265,484,42);panel.add(button);button.setText("增添用戶");panel.add(button_1);button_1.setText("刪除用戶");panel.add(button_2);button_2.setText("改正用戶");panel.add(button_3);button_3.setText("退出");}}增添用戶界面圖9增添用戶界面.hpu.lq;importjavax.swing.ButtonGroup;importjavax.swing.JButton;importjavax.swing.JFrame;importjavax.swing.JLabel;importjavax.swing.JPasswordField;importjavax.swing.JRadioButton;importjavax.swing.JTextField;publicclass增添用戶extendsJFrame{privateButtonGroupbuttonGroup=newButtonGroup( );privatefinalJLabellabel=newJLabel( );privatefinalJLabellabel_1=newJLabel( );privatefinalJTextFieldtextField=newJTextField( );privatefinalJPasswordFieldpasswordField=newJPasswordField( );privatefinalJRadioButtonradioButton=newJRadioButton( );privatefinalJRadioButtonradioButton_1=newJRadioButton( );privatefinalprivatefinal/***Launchthe
JButtonbutton=newJButton( );JButtonbutton_1=newJButton( );application@paramargs*/publicstatictry{
voidmain(Stringargs[]){增添用戶
frame=
new增添用戶
( );frame.setVisible(
true
);}catch(Exceptione){e.printStackTrace( );}}/***
Create
the
frame*/public
增添用戶( ){super( );setBounds(100,100,500,375);setDefaultCloseOperation(JFrame.try{jbInit( );}catch(Throwablee){e.printStackTrace( );
EXIT_ON_CLOSE);}//}privatevoidjbInit( )throwsgetContentPane( ).setLayout(
Exception{null);setTitle(
"增添用戶");getContentPane( ).add(labellabel.setText("用戶名:");label.setBounds(108,68,66,18);
);getContentPane( ).add(
label_1
);label_1
.setText(
"密碼:");label_1.setBounds(108,132,66,18);getContentPane( ).add(textField);textField.setBounds(178,66,147,22);getContentPane( ).add(passwordField);passwordField.setBounds(178,130,147,22);getContentPane( ).add(radioButton);radioButton.setSelected(true);buttonGroup.add(radioButton);radioButton.setText("讀者");radioButton.setBounds(147,195,66,26);getContentPane( ).add(radioButton_1);buttonGroup.add(radioButton_1);radioButton_1.setText("管理員");radioButton_1.setBounds(219,195,66,26);getContentPane( ).add(
button
);button
.setText(
"增添");button
.setBounds(108,249,87,28);getContentPane( ).add(
button_1
);button_1
.setText(
"退出");button_1.setBounds(244,249,81,28);}}刪除用戶界面圖10刪除用戶界面.hpu.lq;importjavax.swing.JButton;importjavax.swing.JComboBox;importjavax.swing.JFrame;importjavax.swing.JLabel;publicclass刪除用戶extendsJFrame{privatefinalJLabellabel=newJLabel( );privatefinalJComboBoxcomboBox=newJComboBox( );privatefinalJButtonbutton=newJButton( );privatefinalJButtonbutton_1=newJButton( );/***Launchtheapplication@paramargs*/publicstatictry{
voidmain(Stringargs[]){刪除用戶
frame=
new刪除用戶
( );frame.setVisible(
true
);}catch(Exceptione){e.printStackTrace( );}}/***
Create
the
frame*/public
刪除用戶( ){super( );setBounds(100,100,500,375);setDefaultCloseOperation(JFrame.try{jbInit( );}catch(Throwablee){e.printStackTrace( );
EXIT_ON_CLOSE);}//}privatevoidjbInit( )throwsgetContentPane( ).setLayout(
Exception{null);setTitle(
"刪除用戶");getContentPane( ).add(label);label.setText("用戶名:");label.setBounds(79,93,66,18);getContentPane( ).add(comboBox);comboBox.setBounds(151,89,178,27);getContentPane( ).add(
button
);buttonbutton
.setText("刪除用戶");.setBounds(79,177,106,28);getContentPane( ).add(
button_1
);button_1
.setText(
"退出");button_1.setBounds(223,177,106,28);}}改正用戶界面圖11改正用戶界面.hpu.lq;importjavax.swing.ButtonGroup;importjavax.swing.JButton;importjavax.swing.JComboBox;importjavax.swing.JFrame;importjavax.swing.JLabel;importjavax.swing.JPasswordField;importjavax.swing.JRadioButton;importjavax.swing.JTextField;publicclass改正用戶extendsJFrame{privateButtonGroupbuttonGroup=newButtonGroup( );privatefinalJLabellabel=newJLabel( );privatefinalJLabellabel_1=newJLabel( );privatefinalJPasswordFieldpasswordField=newJPasswordField( );privatefinalJRadioButtonradioButton=newJRadioButton( );privatefinalJRadioButtonradioButton_1=newJRadioButton( );privatefinalJButtonbutton=newJButton( );privatefinalJButtonbutton_1=newJButton( );privatefinalJComboBoxcomboBox=newJComboBox( );/***Launchtheapplication@paramargs*/publicstaticvoidmain(Stringargs[]){try{改正用戶frame=new改正用戶( );frame.setVisible(true);}catch(Exceptione){e.printStackTrace( );}}/***Createtheframe*/public改正用戶( ){super( );setBounds(100,100,500,375);setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);try{jbInit( );}catch(Throwablee){e.printStackTrace( );}//}privatevoidjbInit( )throwsException{getContentPane( ).setLayout(null);setTitle("改正用戶");getContentPane( ).add(label);label.setText("用戶名:");label.setBounds(108,68,66,18);getContentPane( ).add(label_1);label_1.setText("密碼:");label_1.setBounds(108,132,66,18);getContentPane( ).add(passwordField);passwordField.setBounds(178,130,147,22);getContentPane( ).add(radioButton);radioButton.setSelected(true);buttonGroup.add(radioButton);radioButton.setText("讀者");radioButton.setBounds(147,195,66,26);getContentPane( ).add(radioButton_1);buttonGroup.add(radioButton_1);radioButton_1.setText("管理員");radioButton_1.setBounds(219,195,66,26);getContentPane( ).add(button);button.setText("改正");button.setBounds(108,249,87,28);getContentPane( ).add(button_1);button_1.setText("退出");button_1.setBounds(244,249,81,28);getContentPane( ).add(comboBox);comboBox.setBounds(180,64,145,27);}}1.2.2期刊管理界面圖12期刊管理界面.hpu.lq;importjavax.swing.JButton;importjavax.swing.JFrame;importjavax.swing.JPanel;importjavax.swing.JScrollPane;importjavax.swing.JTable;importjavax.swing.table.DefaultTableModel;publicclass期刊管理extendsJFrame{String[]columNames={"用戶名","密碼","權(quán)限"};Object[][]data={{"","","",""}};DefaultTableModeldtm=newDefaultTableModel(data,columNames);privatefinalJTabletable=newJTable(dtm);privatefinalJScrollPanescrollPane=newJScrollPane( );privatefinalJPanelpanel=newJPanel( );privatefinalJButtonbutton=newJButton( );privatefinalJButtonbutton_1=newJButton( );privatefinalJButtonbutton_2=newJButton( );privatefinalJButtonbutton_3=newJButton( );privatefinalJButtonbutton_4=newJButton( );/***Launchtheapplication@paramargs*/publicstaticvoidmain(Stringargs[]){try{期刊管理frame=new期刊管理( );frame.setVisible(true);}catch(Exceptione){e.printStackTrace( );}}/***Createtheframe*/public期刊管理( ){super( );setBounds(100,100,500,375);setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);try{jbInit( );}catch(Throwablee){}e.printStackTrace( );//}privatevoidjbInit( )throwsException{getContentPane( ).setLayout(null);setTitle("期刊管理");getContentPane( ).add(scrollPanescrollPane.setBounds(0,0,484,234);
);table.hashCode( );scrollPane.setViewportView(table);getContentPane( ).add(panel);panel.setBounds(0,265,484,42);panel.add(button);button.setText("增添期刊");panel.add(button_1);button_1.setText("刪除期刊");panel.add(button_2);button_2.setText("庫存期刊查問");panel.add(button_4);button_4.setText("期刊去處查問");panel.add(button_3);button_3.setText("退出");}}增添期刊界面圖13增添期刊界面.hpu.lq;importjavax.swing.ButtonGroup;importjavax.swing.JButton;importjavax.swing.JFrame;importjavax.swing.JLabel;importjavax.swing.JPasswordField;importjavax.swing.JRadioButton;importjavax.swing.JTextField;publicclass增添期刊extendsJFrame{privatefinalJLabellabel=newJLabel( );privatefinalJLabellabel_1=newJLabel( );privatefinalJTextFieldtextField=newJTextField( );privatefinalJPasswordFieldpasswordField=newJPasswordField( );privatefinalJButtonbutton=newJButton( );privatefinalJButtonbutton_1=newJButton( );privatefinalJTextFieldtextField_1=newJTextField( );privatefinalJLabellabel_2=newJLabel( );privatefinalJLabellabel_3=newJLabel( );privatefinalJTextFieldtextField_2=newJTextField( );privatefinalJLabellabel_4=newJLabel( );privatefinalJTextFieldtextField_3=newJTextField( );/***Launchtheapplication@paramargs*/publicstatictry{
voidmain(Stringargs[]){增添期刊
frame=
new增添期刊
( );frame.setVisible(
true
);}catch(Exceptione){e.printStackTrace( );}}/***
Create
the
frame*/public
增添期刊( ){super( );setBounds(100,100,500,375);setDefaultCloseOperation(JFrame.try{jbInit( );}catch(Throwablee){e.printStackTrace( );
EXIT_ON_CLOSE);}//}privatevoidjbInit( )throwsgetContentPane( ).setLayout(
Exception{null);setTitle(
"增添期刊");getContentPane( ).add(labellabel.setText("期刊名稱:");label.setBounds(108,68,66,18);
);getContentPane( ).add(label_1);label_1.setText("主辦單位:");label_1.setBounds(108,145,66,18);getContentPane( ).add(textField);textField.setBounds(178,66,147,22);getContentPane( ).add(passwordField);passwordField.setBounds(180,143,147,22);getContentPane( ).add(button);button.setText("增添");button.setBounds(108,242,87,28);getContentPane( ).add(button_1);button_1.setText("退出");button_1.setBounds(244,242,81,28);getContentPane( ).add(textField_1);textField_1.setBounds(178,30,147,22);getContentPane( ).add(label_2);label_2.setText("CN刊號:");label_2.setBounds(108,32,66,18);getContentPane( ).add(label_3);label_3.setText("第一版周期:");label_3.setBounds(108,108,66,18);getContentPane( ).add(textField_2);textField_2.setBounds(178,102,147,22);getContentPane( ).add(label_4);label_4.setText("單價:");label_4.setBounds(108,181,66,18);getContentPane( ).add(textField_3);textField_3.setBounds(178,179,147,22);}}刪除期刊界面圖14刪除期刊界面.hpu.lq;importjavax.swing.JButton;importjavax.swing.JComboBox;importjavax.swing.JFrame;importjavax.swing.JLabel;publicclass刪除期刊extendsJFrame{privatefinalJLabellabel=newJLabel( );privatefinalJLabellabel_1=newJLabel( );privatefinalJLabellabel_2=newJLabel( );privatefinalJComboBoxcomboBox=newJComboBox( );privatefinalJComboBoxcomboBox_1=newJComboBox( );privatefinalJComboBoxcomboBox_2=newJComboBox( );privatefinalprivatefinal/***Launchthe
JButtonbutton=newJButton( );JButtonbutton_1=newJButton( );application@paramargs*/publicstatictry{
voidmain(Stringargs[]){刪除期刊
frame=
new刪除期刊
( );frame.setVisible(
true
);}catch(Exceptione){e.printStackTrace( );}}/***
Create
the
frame*/public
刪除期刊( ){super( );setBounds(100,100,500,375);setDefaultCloseOperation(JFrame.try{jbInit( );}catch(Throwablee){e.printStackTrace( );
EXIT_ON_CLOSE);}//}privatevoidjbInit( )throwsgetContentPane( ).setLayout(
Exception{null);setTitle(
"刪除期刊");getContentPane( ).add(labellabel.setText("CN刊號:");label.setBounds(76,63,66,18);
);getContentPane( ).add(
label_1
);label_1
.setText(
"期刊年份:
");label_1.setBounds(76,122,66,18);getContentPane( ).add(label_2);label_2.setText("期刊期號:");label_2.setBounds(76,185,66,18);getContentPane( ).add(comboBox);comboBox.setBounds(148,59,139,27);getContentPane( ).add(comboBox_1);comboBox_1.setBounds(148,118,139,27);getContentPane( ).add(comboBox_2);comboBox_2.setBounds(148,181,139,27);getContentPane( ).add(
button
);button
.setText(
"刪除");button
.setBounds(76,249,106,28);getContentPane( ).add(
button_1
);button_1
.setText(
"退出");button_1.setBounds(208,249,106,28);}}庫存期刊查問界面圖15庫存期刊查問界面.hpu.lq;importjavax.swing.JButton;importjavax.swing.JFrame;importjavax.swing.JScrollPane;importjavax.swing.JTable;importjavax.swing.table.DefaultTableModel;publicclass庫存期刊查問extendsJFrame{String[]columNames={"CN刊號","期刊名","期刊年份","數(shù)目"};Object[][]data={{"","","",""}};DefaultTableModeldtm=newDefaultTableModel(data,columNames);privatefinalJTabletable=newJTable(dtm);privatefinalJScrollPanescrollPane=newJScrollPane( );privatefinal/***Launchthe
JButtonbutton=newJButton( );application@paramargs*/publicstatictry{
voidmain(Stringargs[]){庫存期刊查問
frame=
new
庫存期刊查問
( );frame.setVisible(
true
);}catch(Exceptione){e.printStackTrace( );}}/***
Create
the
frame*/public
庫存期刊查問( ){super( );setBounds(100,100,500,375);setDefaultCloseOperation(JFrame.try{jbInit( );}catch(Throwablee){e.printStackTrace( );
EXIT_ON_CLOSE);}//}private
void
jbInit( )
throws
Exception{getContentPane( ).setLayout(
null
);setTitle(
"庫存期刊查問
");getContentPane( ).add(scrollPanescrollPane.setBounds(0,0,484,231);
);table.hashCode( );scrollPane.setViewportView(
table
);getContentPane( ).add(
button
);button
.setText(
"返回");button.setBounds(115,267,106,28);}}期刊去處查問界面圖16期刊去處查問.hpu.lq;importjavax.swing.JButton;importjavax.swing.JComboBox;importjavax.swing.JFrame;importjavax.swing.JLabel;publicclass期刊去處查問extendsJFrame{privatefinalJLabellabel=newJLabel( );privatefinalJLabellabel_1=newJLabel( );privatefinalJLabellabel_2=newJLabel( );privatefinalJComboBoxcomboBox=newJComboBox( );privatefinalJComboBoxcomboBox_1=newJComboBox( );privatefinalJComboBoxcomboBox_2=newJComboBox( );privatefinalJButtonbutton=newJButton( );privatefinalJButtonbutton_1=newJButton( );/**Launchtheapplication@paramargs*/publicstaticvoidmain(Stringargs[]){try{期刊去處查問
frame=
new
期刊去處查問
( );frame.setVisible(
true
);}catch(Exceptione){e.printStackTrace( );}}/**Createtheframe*/public
期刊去處查問( ){super( );setBounds(100,100,500,375);setDefaultCloseOperation(JFrame.try{jbInit( );}catch(Throwablee){e.printStackTrace( );
EXIT_ON_CLOSE);}//}privatevoidjbInit( )throwsgetContentPane( ).setLayout(
Exception{null);setTitle(
"期刊去處查問
");getContentPane( ).add(label);label.setText("期刊名稱:");label.setBounds(109,61,66,18);getContentPane( ).add(label_1);label_1.setText("期刊年份:");label_1.setBounds(109,119,66,18);getContentPane( ).add(label_2);label_2.setText("期刊期號:");label_2.setBounds(109,177,66,18);getContentPane( ).add(comboBox);comboBox.setBounds(217,57,142,27);getContentPane( ).add(comboBox_1);comboBox_1.setBounds(217,115,142,27);getContentPane( ).add(comboBox_2);comboBox_2.setBounds(217,173,142,27);getContentPane( ).add(
button
);button
.setText(
"去處查問");button
.setBounds(109,240,106,28);getContentPane( ).add(
button_1
);button_1
.setText(
"封閉");button_1
.setBounds(253,240,106,28);}}1.2.3借閱管理界面圖17借閱管理界面.hpu.lq;importjavax.swing.JButton;importjavax.swing.JComboBox;importjavax.swing.JFrame;importjavax.swing.JLabel;importjavax.swing.JRadioButton;publicclass借閱管理界面extendsJFrame{privatefinalJRadioButtonradioButton=newJRadioButton( );privatefinalJRadioButtonradioButton_1=newJRadioButton( );privatefinalJLabellabel=newJLabel( );privatefinalJLabellabel_1=newJLabel( );privatefinalJLabellabel_2
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年度化妝品產(chǎn)品展示與體驗館建設合同
- 2025年度城市綠地景觀設計施工合同gf
- 2025年度環(huán)保設備銷售與安裝合同
- 2025年度醫(yī)療器械包裝設計開發(fā)合同二零二五
- 2025年度股權(quán)置換居間服務合同模板
- 2025年度二手房購房合同老舊小區(qū)改造補償協(xié)議樣本
- 2025年度溝渠挖土工程進度與付款合同
- 2025年度智能管溝施工與運維一體化服務合同
- 2025年度建筑施工安全生產(chǎn)事故隱患排查治理合同
- 2025年度航空貨運代理與快遞公司合作框架合同
- 中央2025年交通運輸部所屬事業(yè)單位招聘261人筆試歷年參考題庫附帶答案詳解
- 2025年上半年上半年重慶三峽融資擔保集團股份限公司招聘6人易考易錯模擬試題(共500題)試卷后附參考答案
- 江蘇省蘇州市2024-2025學年高三上學期1月期末生物試題(有答案)
- 銷售與銷售目標管理制度
- 特殊教育學校2024-2025學年度第二學期教學工作計劃
- 2025年技術(shù)員個人工作計劃例文(四篇)
- 2025年第一次工地開工會議主要議程開工大吉模板
- 第16課抗日戰(zhàn)爭課件-人教版高中歷史必修一
- 對口升學語文模擬試卷(9)-江西省(解析版)
- 無人機運營方案
- 糖尿病高滲昏迷指南
評論
0/150
提交評論