• 大小: 3.32MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-09-20
  • 语言: Java
  • 标签: java  C/S  管理系统  

资源简介

C/S端的简单DVD租赁系统,大二时开发的项目,基于java开发,功能齐全。主要功能模块为:查看DVD/增加DVD/借出DVD/归还DVD/删除DVD / 员工管理/客户管理/登陆注册等。。资源含有源码以及项目的可运行程序。

资源截图

代码片段和文件信息

package com.chinasofi.dvd.controller;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.Jframe;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.plaf.basic.BasicBorders.RadioButtonBorder;

import com.chinasofi.dvd.dao.CustomerDao;
import com.chinasofi.dvd.entity.Customer;

import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JTextField;
import javax.swing.ButtonGroup;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.awt.event.ActionEvent;
import java.awt.Color;
import javax.swing.JCheckBox;
import javax.swing.JRadioButton;
import javax.swing.ImageIcon;
import java.awt.Font;

public class AddCustomer extends Jframe {

/**
 * 新增客户
 */

private JPanel contentPane;
private JTextField textField;

public AddCustomer() {
settitle(“\u65B0\u589E\u5BA2\u6237“);
setDefaultCloseOperation(Jframe.DO_NOTHING_ON_CLOSE);
addWindowListener(new WindowAdapter() {

@Override
public void windowClosing(WindowEvent e) {
setVisible(false);
new CustomerManagement();
}
});
setBounds(100 100600 400);
contentPane = new JPanel();
contentPane.setBorder(new EmptyBorder(5 5 5 5));
setContentPane(contentPane);
contentPane.setLayout(null);

JLabel lblNewLabel = new JLabel(“\u59D3\u540D\uFF1A“);
lblNewLabel.setFont(new Font(“宋体“ Font.BOLD 16));
lblNewLabel.setForeground(Color.WHITE);
lblNewLabel.setBounds(171 85 80 21);
contentPane.add(lblNewLabel);

textField = new JTextField();
textField.setBounds(282 86 138 23);
contentPane.add(textField);
textField.setColumns(10);

JLabel info11 = new JLabel(““);
info11.setFont(new Font(“宋体“ Font.BOLD 14));
info11.setForeground(new Color(2027066));
info11.setBounds(257 292 130 21);
contentPane.add(info11);

JRadioButton radioButton = new JRadioButton(“\u7537“);
radioButton.setFont(new Font(“宋体“ Font.PLAIN 14));
radioButton.setForeground(Color.LIGHT_GRAY);
radioButton.setBackground(new Color(78 58 59));
radioButton.setBounds(282 141 59 34);
contentPane.add(radioButton);

JRadioButton radioButton_1 = new JRadioButton(“\u5973“);
radioButton_1.setFont(new Font(“宋体“ Font.PLAIN 14));
radioButton_1.setForeground(Color.LIGHT_GRAY);
radioButton_1.setBackground(new Color(78 58 59));
radioButton_1.setBounds(372 141 48 34);
contentPane.add(radioButton_1);
ButtonGroup bg=new ButtonGroup();
bg.add(radioButton);
bg.add(radioButton_1);

JButton button = new JButton(“\u786E\u8BA4“);
button.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {

String name=textField.getText();
String gender;

if(name.equals(““)){
info11.setText(“姓名不能为空“);
return;
}
if(!radi

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

     文件        421  2017-06-21 13:57  DVD租赁系统\dvd\.classpath

     文件        379  2017-06-20 15:20  DVD租赁系统\dvd\.project

     文件        598  2017-06-20 15:20  DVD租赁系统\dvd\.settings\org.eclipse.jdt.core.prefs

     文件     996444  2017-06-21 13:57  DVD租赁系统\dvd\bil\mysql-connector-java-5.1.42-bin.jar

     文件     156675  2017-06-24 13:38  DVD租赁系统\dvd\bin\com\chinasofi\dvd\background_icon\背景.jpg

     文件         96  2017-06-24 21:51  DVD租赁系统\dvd\bin\com\chinasofi\dvd\config\jdbc.properties

     文件        828  2017-06-25 00:23  DVD租赁系统\dvd\bin\com\chinasofi\dvd\controller\AddCustomer$1.class

     文件       2444  2017-06-25 00:23  DVD租赁系统\dvd\bin\com\chinasofi\dvd\controller\AddCustomer$2.class

     文件       1204  2017-06-25 00:23  DVD租赁系统\dvd\bin\com\chinasofi\dvd\controller\AddCustomer$3.class

     文件       3769  2017-06-25 00:23  DVD租赁系统\dvd\bin\com\chinasofi\dvd\controller\AddCustomer.class

     文件        784  2017-06-25 00:29  DVD租赁系统\dvd\bin\com\chinasofi\dvd\controller\AddDVD$1.class

     文件       2438  2017-06-25 00:29  DVD租赁系统\dvd\bin\com\chinasofi\dvd\controller\AddDVD$2.class

     文件       1090  2017-06-25 00:29  DVD租赁系统\dvd\bin\com\chinasofi\dvd\controller\AddDVD$3.class

     文件       3466  2017-06-25 00:29  DVD租赁系统\dvd\bin\com\chinasofi\dvd\controller\AddDVD.class

     文件        828  2017-06-25 00:23  DVD租赁系统\dvd\bin\com\chinasofi\dvd\controller\AddEmployee$1.class

     文件       2876  2017-06-25 00:23  DVD租赁系统\dvd\bin\com\chinasofi\dvd\controller\AddEmployee$2.class

     文件       1278  2017-06-25 00:23  DVD租赁系统\dvd\bin\com\chinasofi\dvd\controller\AddEmployee$3.class

     文件       4324  2017-06-25 00:23  DVD租赁系统\dvd\bin\com\chinasofi\dvd\controller\AddEmployee.class

     文件        802  2017-06-24 23:37  DVD租赁系统\dvd\bin\com\chinasofi\dvd\controller\BorrowDVD$1.class

     文件       2820  2017-06-24 23:37  DVD租赁系统\dvd\bin\com\chinasofi\dvd\controller\BorrowDVD$2.class

     文件       1074  2017-06-24 23:37  DVD租赁系统\dvd\bin\com\chinasofi\dvd\controller\BorrowDVD$3.class

     文件       3205  2017-06-24 23:37  DVD租赁系统\dvd\bin\com\chinasofi\dvd\controller\BorrowDVD.class

     文件        846  2017-06-24 23:36  DVD租赁系统\dvd\bin\com\chinasofi\dvd\controller\ChangePassword$1.class

     文件       2448  2017-06-24 23:36  DVD租赁系统\dvd\bin\com\chinasofi\dvd\controller\ChangePassword$2.class

     文件       1147  2017-06-24 23:36  DVD租赁系统\dvd\bin\com\chinasofi\dvd\controller\ChangePassword$3.class

     文件       3529  2017-06-24 23:36  DVD租赁系统\dvd\bin\com\chinasofi\dvd\controller\ChangePassword.class

     文件        856  2017-06-24 23:36  DVD租赁系统\dvd\bin\com\chinasofi\dvd\controller\CustomerManagement$1.class

     文件        892  2017-06-24 23:36  DVD租赁系统\dvd\bin\com\chinasofi\dvd\controller\CustomerManagement$2.class

     文件        890  2017-06-24 23:36  DVD租赁系统\dvd\bin\com\chinasofi\dvd\controller\CustomerManagement$3.class

     文件        896  2017-06-24 23:36  DVD租赁系统\dvd\bin\com\chinasofi\dvd\controller\CustomerManagement$4.class

............此处省略109个文件信息

评论

共有 条评论