• 大小: 2.70M
    文件类型: .rar
    金币: 2
    下载: 1 次
    发布日期: 2023-06-24
  • 语言: Java
  • 标签: SQL  Sever2012  java  

资源简介

1.本前端所使用的JDBC为SQL Sever2012所对应的JDBC版本;
2.所支持的java版本为jdk1.8.0_191;
4.代码直接用eclipse包含,然后将JDBC驱动设为参照库并设置数据库相关配置即可使用。
3.前台代码连接数据库的主要代码集中在DataBaseConnection类中,用户名默认为sa,密码由用户自己设定(本类中连接密码默认为123456)。

代码片段和文件信息

package Dormitory;
import java.awt.*;
import javax.swing.*;


import java.awt.event.ActionListener;
import java.sql.CallableStatement;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.awt.event.ActionEvent;
public class Accident extends JPanel{
private JButton s1 = new JButton(“信息查询“);
private JButton s5 = new JButton(“返回“);
private String[] Dno;
private String[] Cause;
private String[] Times;
private ImageIcon icon = new ImageIcon(“image\\0.png“);
private JLabel jlbImage = new JLabel(icon);
 private PreparedStatement ps = null;
 private Connection ct = null;
 private ResultSet rs = null;
 private JPanel jp1 = new JPanel();
 private JPanel jp2 = new JPanel();
 private Ma

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

     文件     586238  2020-07-31 09:28  哈哈组\ppt演示文稿\哈哈组数据库课程设计.pptx

     文件      11983  2020-07-31 09:28  哈哈组\T-SQL命令\宿舍管理系统.sql

     文件        437  2020-07-31 09:28  哈哈组\前台代码\DormitoryManagementSystem\.classpath

     文件        401  2020-07-31 09:28  哈哈组\前台代码\DormitoryManagementSystem\.project

     文件        598  2020-07-31 09:28  哈哈组\前台代码\DormitoryManagementSystem\.settings\org.eclipse.jdt.core.prefs

     文件        874  2020-07-31 09:28  哈哈组\前台代码\DormitoryManagementSystem\bin\Dormitory\Accident$cancelListener.class

     文件       4318  2020-07-31 09:28  哈哈组\前台代码\DormitoryManagementSystem\bin\Dormitory\Accident$selectListener.class

     文件       4118  2020-07-31 09:28  哈哈组\前台代码\DormitoryManagementSystem\bin\Dormitory\Accident.class

     文件       1603  2020-07-31 09:28  哈哈组\前台代码\DormitoryManagementSystem\bin\Dormitory\DatabaseConnection.class

     文件        880  2020-07-31 09:28  哈哈组\前台代码\DormitoryManagementSystem\bin\Dormitory\Dormitory$cancelListener.class

     文件       2413  2020-07-31 09:28  哈哈组\前台代码\DormitoryManagementSystem\bin\Dormitory\Dormitory$selectListener.class

     文件       3141  2020-07-31 09:28  哈哈组\前台代码\DormitoryManagementSystem\bin\Dormitory\Dormitory$updateListener.class

     文件       6063  2020-07-31 09:28  哈哈组\前台代码\DormitoryManagementSystem\bin\Dormitory\Dormitory.class

     文件        866  2020-07-31 09:28  哈哈组\前台代码\DormitoryManagementSystem\bin\Dormitory\LeaveReturnTime$cancel.class

     文件       3307  2020-07-31 09:28  哈哈组\前台代码\DormitoryManagementSystem\bin\Dormitory\LeaveReturnTime$select.class

     文件       5227  2020-07-31 09:28  哈哈组\前台代码\DormitoryManagementSystem\bin\Dormitory\LeaveReturnTime.class

     文件        755  2020-07-31 09:28  哈哈组\前台代码\DormitoryManagementSystem\bin\Dormitory\LoginForm$1.class

     文件        755  2020-07-31 09:28  哈哈组\前台代码\DormitoryManagementSystem\bin\Dormitory\LoginForm$2.class

     文件        881  2020-07-31 09:28  哈哈组\前台代码\DormitoryManagementSystem\bin\Dormitory\LoginForm$cancelListener.class

     文件       1296  2020-07-31 09:28  哈哈组\前台代码\DormitoryManagementSystem\bin\Dormitory\LoginForm$loginListener.class

     文件       4920  2020-07-31 09:28  哈哈组\前台代码\DormitoryManagementSystem\bin\Dormitory\LoginForm.class

     文件        855  2020-07-31 09:28  哈哈组\前台代码\DormitoryManagementSystem\bin\Dormitory\MainForm.class

     文件        703  2020-07-31 09:28  哈哈组\前台代码\DormitoryManagementSystem\bin\Dormitory\MainPanel$cancelListener.class

     文件        852  2020-07-31 09:28  哈哈组\前台代码\DormitoryManagementSystem\bin\Dormitory\MainPanel$loginListener.class

     文件       2362  2020-07-31 09:28  哈哈组\前台代码\DormitoryManagementSystem\bin\Dormitory\MainPanel.class

     文件        849  2020-07-31 09:28  哈哈组\前台代码\DormitoryManagementSystem\bin\Dormitory\MenuForm$CancelListener.class

     文件        858  2020-07-31 09:28  哈哈组\前台代码\DormitoryManagementSystem\bin\Dormitory\MenuForm$DormitoryListener.class

     文件        846  2020-07-31 09:28  哈哈组\前台代码\DormitoryManagementSystem\bin\Dormitory\MenuForm$LeaveReturn.class

     文件        854  2020-07-31 09:28  哈哈组\前台代码\DormitoryManagementSystem\bin\Dormitory\MenuForm$MaintainListener.class

     文件        850  2020-07-31 09:28  哈哈组\前台代码\DormitoryManagementSystem\bin\Dormitory\MenuForm$StudentListener.class

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

评论

共有 条评论