04期刊管理系统系统实现

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
private final JButton button = new JButton(); private final JButton button_1 = new JButton(); private final JButton button_2 = new JButton(); /**
* Launch the application * @param args */ public static void main(String args[]) {
1.1.4 修改密码界面........................................................................................15
1.2 管理员主界面 ............................................................18
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);
1.2.1 读者管理界面........................................................................................20 1.2.1.1 添加用户界面 ....................................................................................23 1.2.1.2 删除用户界面 ....................................................................................26 1.2.1.3 修改用户界面 ....................................................................................28
frame.getContentPane().add(lbl_login); lbl_login.setFont(new Font("", Font.BOLD, 22));
lbl_login.setText("系统登录"); lbl_login.setBounds(188, 44, 92, 40);
1.2.2 期刊管理界面........................................................................................31 1.2.2.1 添加期刊界面 ....................................................................................34 1.2.2.2 删除期刊界面 ....................................................................................37 1.2.2.3 库存期刊查询界面 ............................................................................40 1.2.2.4 期刊去向查询界面 ............................................................................42
* Launch the application * @param args */ public static void main(String args[]) {
try { LoginApplication window = new LoginApplication(); window.frame.setVisible(true);
frame.getContentPane().add(button); button.setText("登录"); button.setBounds(98, 231, 106, 28);
frame.getContentPane().add(btn_exit); btn_exit.addActionListener(new Btn_exitActionListener()); btn_exit.setText("退出"); btn_exit.setBounds(232, 231, 106, 28); } private class Btn_exitActionListenerimplements ActionListener { public void actionPerformed(ActionEvent e) {
btn_exit_actionPerformed(e); } } protected void btn_exit_actionPerformed(ActionEvent e) { System.exit(0); } }
1.1 读者查询主界面
图 2 读者查询主界面 package .hpu.lq; import javax.swing.JButton; import javax.swing.JFrame; public class ReaderFrame extends JFrame {
public class LoginApplication {
private JFrame frame;
private final JLabel lbl_login = new JLabel(); private final JLabel lbl_name = new JLabel(); private final JLabel lbl_password = new JLabel(); private final JTextField textField = new JTextField(); private final JPasswordField passwordField = new JPasswordField(); private final JButton button = new JButton(); private final JButton btn_exit = new JButton(); /**
} catch (Exception e) { e.printStackTrace();
} }
/** * Create the application */
public LoginApplication() { jbInit();
}
/** * Initialize the contents of the frame */
} private void jbInit() throws Exception {
getContentPane().setLayout(null); setTitle("读者查询");
getContentPane().add(button); button.setText("个人借阅查询"); button.setBounds(135, 77, 147, 28);
try { ReaderFrame frame = new ReaderFrame(); frame.setVisible(true);
} catch (Exception e) { e.printStackTrace();
}
}
/** * Create the frame */
public ReaderFrame() { super(); setBounds(100, 100, 500, 375); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); try { jbInit(); } catch (Throwable e) { e.printStackTrace(); } //
frame.ge textField.setBounds(167, 115, 176, 22);
frame.getContentPane().add(passwordField); passwordField.setBounds(167, 156, 176, 22);
“期刊管理系统”系统实现
本系统用 Java语言来实现。集成开发环境采用 JBuilder2008,数据库采用 MySql。
1 系统登录界面
首先,有一个“系统登录”窗体,根据用户所输入的用户名来判断是读者还是管理 员,并分别切换至“读者查询主界面”或“管理员主界面”。
图 1 系统登录界面 package .hpu.lq; import java.awt.Font; 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.JPasswordField; import javax.swing.JTextField;
private void jbInit() { frame = new JFrame(); frame.setTitle("期刊管理系统"); frame.getContentPane().setLayout(null); frame.setBounds(100, 100, 500, 375); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
个人借阅查询界面..................................................................................8 库存期刊查询界面................................................................................10 期刊去向查询界面................................................................................12
目录
1 系统登录界面.........................................................3
1.1 读者查询主界面...........................................................6
1.1.1 1.1.2 1.1.3
getContentPane().add(button_1); button_1.setText("库存期刊查询"); button_1.setBounds(135, 147, 147, 28);
1.2.3 借阅管理界面........................................................................................45 1.2.4 修改密码界面........................................................................................48
相关文档
最新文档