04期刊管理系统系统实现.docx

上传人:b****2 文档编号:18094485 上传时间:2023-08-13 格式:DOCX 页数:63 大小:409.67KB
下载 相关 举报
04期刊管理系统系统实现.docx_第1页
第1页 / 共63页
04期刊管理系统系统实现.docx_第2页
第2页 / 共63页
04期刊管理系统系统实现.docx_第3页
第3页 / 共63页
04期刊管理系统系统实现.docx_第4页
第4页 / 共63页
04期刊管理系统系统实现.docx_第5页
第5页 / 共63页
04期刊管理系统系统实现.docx_第6页
第6页 / 共63页
04期刊管理系统系统实现.docx_第7页
第7页 / 共63页
04期刊管理系统系统实现.docx_第8页
第8页 / 共63页
04期刊管理系统系统实现.docx_第9页
第9页 / 共63页
04期刊管理系统系统实现.docx_第10页
第10页 / 共63页
04期刊管理系统系统实现.docx_第11页
第11页 / 共63页
04期刊管理系统系统实现.docx_第12页
第12页 / 共63页
04期刊管理系统系统实现.docx_第13页
第13页 / 共63页
04期刊管理系统系统实现.docx_第14页
第14页 / 共63页
04期刊管理系统系统实现.docx_第15页
第15页 / 共63页
04期刊管理系统系统实现.docx_第16页
第16页 / 共63页
04期刊管理系统系统实现.docx_第17页
第17页 / 共63页
04期刊管理系统系统实现.docx_第18页
第18页 / 共63页
04期刊管理系统系统实现.docx_第19页
第19页 / 共63页
04期刊管理系统系统实现.docx_第20页
第20页 / 共63页
亲,该文档总共63页,到这儿已超出免费预览范围,如果喜欢就下载吧!
下载资源
资源描述

04期刊管理系统系统实现.docx

《04期刊管理系统系统实现.docx》由会员分享,可在线阅读,更多相关《04期刊管理系统系统实现.docx(63页珍藏版)》请在冰点文库上搜索。

04期刊管理系统系统实现.docx

04期刊管理系统系统实现

04期刊管理系统系统实现

 

“期刊管理系统”系统实现

本系统用Java语言来实现。

集成开发环境采用JBuilder2008,数据库采用MySql。

1系统登录界面

首先,有一个“系统登录”窗体,根据用户所输入的用户名来判断是读者还是管理员,并分别切换至“读者查询主界面”或“管理员主界面”。

图1系统登录界面

packagecn.edu.hpu.lq;

importjava.awt.Font;

importjava.awt.event.ActionEvent;

importjava.awt.event.ActionListener;

importjavax.swing.JButton;

importjavax.swing.JFrame;

importjavax.swing.JLabel;

importjavax.swing.JPasswordField;

importjavax.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("期刊管理系统");

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("系统登录");

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读者查询主界面

packagecn.edu.hpu.lq;

importjavax.swing.JButton;

importjavax.swing.JFrame;

publicclassReaderFrameextendsJFrame{

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.EXIT_ON_CLOSE);

try{

jbInit();

}catch(Throwablee){

e.printStackTrace();

}

//

}

privatevoidjbInit()throwsException{

getContentPane().setLayout(null);

setTitle("读者查询");

getContentPane().add(button);

button.setText("个人借阅查询");

button.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个人借阅查询主界面

packagecn.edu.hpu.lq;

importjavax.swing.JButton;

importjavax.swing.JFrame;

importjavax.swing.JScrollPane;

importjavax.swing.JTable;

importjavax.swing.table.DefaultTableModel;

publicclass个人借阅查询extendsJFrame{

String[]columNames={"用户名","期刊名","年份","期号","借出日期","应还日期"};

Object[][]data={

{"","","",""}

};

DefaultTableModeldtm=newDefaultTableModel(data,columNames);

privatefinalJTabletable=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库存期刊查询界面

packagecn.edu.hpu.lq;

importjavax.swing.JButton;

importjavax.swing.JFrame;

importjavax.swing.JScrollPane;

importjavax.swing.JTable;

importjavax.swing.table.DefaultTableModel;

publicclass库存期刊查询extendsJFrame{

String[]columNames={"CN刊号","期刊名","期刊年份","数量"};

Object[][]data={

{"","","",""}

};

DefaultTableModeldtm=newDefaultTableModel(data,columNames);

privatefinalJTabletable=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,231);

table.hashCode();

scrollPane.setViewportView(table);

getContentPane().add(button);

button.setText("返回");

button.setBounds(115,267,106,28);

}

}

1.1.3期刊去向查询界面

图5期刊去向查询

 

packagecn.edu.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.EXIT_ON_CLOSE);

try{

jbInit();

}catch(Throwablee){

e.printStackTrace();

}

//

}

privatevoidjbInit()throwsException{

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修改密码界面

packagecn.edu.hpu.lq;

importjava.awt.event.ActionEvent;

importjava.awt.event.ActionListener;

importjavax.swing.JButton;

importjavax.swing.JFrame;

importjavax.swing.JLabel;

importjavax.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("密码修改");

ge

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 表格模板 > 合同协议

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2