package FunctionUI;
import java.awt.Color;
import java.awt.EventQueue;
import java.awt.Font;
import java.awt.SystemColor;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
import javax.swing.border.EmptyBorder;
import JavaBean.User;
import Util.SqlUtil;
public class InfoEntryUi extends JFrame {
private JPanel contentPane;
private JTextField textField;
private JTextField textField_1;
private JTextField textField_2;
private JTextField textField_3;
private JTextField textField_4;
private JTextField textField_5;
private JTextField textField_6;
private JTextField textField_7;
private JTextField textField_8;
private JTextField textField_9;
private JTextField textField_10;
private JTextField textField_11;
private static SqlUtil sql;
private Connection dbConn;
private static int index;
private static User stu;
/**
* Launch the application.
*/
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
String outLookAndFeel ="com.jtattoo.plaf.smart.SmartLookAndFeel";
try {
UIManager.setLookAndFeel(outLookAndFeel);
} catch (ClassNotFoundException | InstantiationException | IllegalAccessException
| UnsupportedLookAndFeelException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
try {
InfoEntryUi frame = new InfoEntryUi(stu,sql,index);
frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
/**
* Create the frame.
*/
public InfoEntryUi(User stu,SqlUtil sql,int index) {
this.stu = stu;
this.sql = new SqlUtil();
dbConn = sql.returnConnection();
this.index = index;
setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
setBounds(600, 50,780,880);
contentPane = new JPanel();
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
setContentPane(contentPane);
contentPane.setLayout(null);
JLabel label = new JLabel("学生学籍信息管理");
label.setFont(new Font("楷体", Font.PLAIN, 30));
label.setBounds(260, 38, 245, 47);
contentPane.add(label);
JLabel label_1 = new JLabel("姓名");
label_1.setBackground(new Color(240, 240, 240));
label_1.setForeground(SystemColor.controlDkShadow);
label_1.setFont(new Font("楷体", Font.PLAIN, 28));
label_1.setBounds(60, 110, 147, 32);
contentPane.add(label_1);
textField = new JTextField();
textField.setFont(new Font("宋体", Font.PLAIN, 25));
textField.setColumns(10);
textField.setBounds(250, 110, 399, 32);
contentPane.add(textField);
if(index==0)textField.setEditable(false);
JLabel label_2 = new JLabel("学号");
label_2.setForeground(SystemColor.controlDkShadow);
label_2.setFont(new Font("楷体", Font.PLAIN, 28));
label_2.setBackground(SystemColor.menu);
label_2.setBounds(60, 160, 147, 32);
contentPane.add(label_2);
textField_1 = new JTextField();
textField_1.setFont(new Font("宋体", Font.PLAIN, 25));
textField_1.setColumns(10);
textField_1.setBounds(250, 160, 399, 32);
contentPane.add(textField_1);
if(index==0)textField_1.setEditable(false);
JLabel label_3 = new JLabel("身份证号");
label_3.setForeground(SystemColor.controlDkShadow);
label_3.setFont(new Font("楷体", Font.PLAIN, 28));
label_3.setBackground(SystemColor.menu);
label_3.setBounds(60, 205, 147, 32);
contentPane.add(label_3);
textField_2 = new JTextField();
textField_2.setFont(new Font("宋体", Font.PLAIN, 25));
textField_2.setColumns(10);
textField_2.setBounds(250, 205, 399, 32);
contentPane.add(textField_2);
if(index==0)textField_2.setEditable(false);
JLabel label_4 = new JLabel("性别");
label_4.setForeground(SystemColor.controlDkShadow);
label_4.setFont(new Font("楷体", Font.PLAIN, 28));
label_4.setBackground(SystemColor.menu);
label_4.setBounds(60, 250, 147, 32);
contentPane.add(label_4);
JLabel label_5 = new JLabel("专业");
label_5.setForeground(SystemColor.controlDkShadow);
label_5.setFont(new Font("楷体", Font.PLAIN, 28));
label_5.setBackground(SystemColor.menu);
label_5.setBounds(60, 300, 147, 32);
contentPane.add(label_5);
JLabel label_6 = new JLabel("班级");
label_6.setForeground(SystemColor.controlDkShadow);
label_6.setFont(new Font("楷体", Font.PLAIN, 28));
label_6.setBackground(SystemColor.menu);
label_6.setBounds(60, 345, 147, 32);
contentPane.add(label_6);
textField_3 = new JTextField();
textField_3.setFont(new Font("宋体", Font.PLAIN, 25));
textField_3.setColumns(10);
textField_3.setBounds(250, 250, 399, 32);
contentPane.add(textField_3);
if(index==0)textField_3.setEditable(false);
textField_4 = new JTextField();
textField_4.setFont(new Font("宋体", Font.PLAIN, 25));
textField_4.setColumns(10);
textField_4.setBounds(250, 300, 399, 32);
contentPane.add(textField_4);
if(index==0)textField_4.setEditable(false);
textField_5 = new JTextField();
textField_5.setFont(new Font("宋体", Font.PLAIN, 25));
textField_5.setColumns(10);
textField_5.setBounds(250, 345, 399, 32);
contentPane.add(textField_5);
if(index==0)textField_5.setEditable(false);
JLabel label_7 = new JLabel("所在院系");
label_7.setForeground(SystemColor.controlDkShadow);
label_7.setFont(new Font("楷体", Font.PLAIN, 28));
label_7.setBackground(SystemColor.menu);
label_7.setBounds(60, 390, 147, 32);
contentPane.add(label_7);
JLabel label_8 = new JLabel("毕业高中");
label_8.setForeground(SystemColor.controlDkShadow);
label_8.setFont(new Font("楷体", Font.PLAIN, 28));
label_8.setBackground(SystemColor.menu);
label_8.setBounds(60, 440, 147, 32);
contentPane.add(label_8);
textField_6 = new JTextField();
textField_6.setFont(new Font("宋体", Font.PLAIN, 25));
textField_6.setColumns(10);
textField_6.setBounds(250, 390, 399, 32);
contentPane.add(textField_6);
if(index==0)textField_6.setEditable(false);
textField_7 = new JTextField();
textField_7.setFont(new Font("宋体", Font.PLAIN, 25));
textField_7.setColumns(10);
textField_7.setBounds(250, 440, 399, 32);
contentPane.add(textField_7);
if(index==0)textField_7.setEditable(false);
JLabel label_9 = new JLabel("入学时间");
label_9.setForeground(SystemColor.controlDkShadow);
label_9.setFont(new Font("楷体", Font.PLAIN, 28));
label_9.setBackground(SystemColor.menu);
label_9.setBounds(60, 485, 147, 32);
contentPane.add(label_9);
textField_8 = new JTextField();
textField_8.setFont(new Font("宋体", Font.PLAIN, 25));
textField_8.setColumns(10);
textField_8.setBounds(250, 485, 399, 32);
contentPane.add(textField_8);
if(index==0)textField_8.setEditable(false);
JLabel label_10 = new JLabel("家庭住址");
label_10.setForeground(SystemColor.controlDkShadow);
label_10.setFont(new Font("楷体", Font.PLAIN, 28));
label_10.setBackground(SystemColor.menu);
label_10.setBounds(60, 530, 147, 32);
contentPane.add(label_10);
JLabel label_11 = new JLabel("手机号");
label_11.setForeground(SystemColor.controlDkShadow);
label_11.setFont(new Font("楷体", Font.PLAIN, 28));
label_11.setBackground(SystemColor.menu);
label_11.setBounds(60, 580, 147, 32);
contentPane.add(label_11);
JLabel label_12 = new JLabel("邮箱");
label_12.setForeground(SystemColor.controlDkShad
没有合适的资源?快使用搜索试试~ 我知道了~
学生管理系统SQl数据库.zip
共156个文件
class:83个
java:30个
jpg:20个
5星 · 超过95%的资源 需积分: 50 42 下载量 3 浏览量
2019-06-12
00:14:44
上传
评论 11
收藏 6.59MB ZIP 举报
温馨提示
学习管理系统,java版,内含有较多包,需要自行连接。 学生管理系统主要功能为选课,成绩,学籍信息 图标需要大家自己把图片重新连接,图片在压缩包的rc文件 软件工程大作业
资源推荐
资源详情
资源评论
收起资源包目录
学生管理系统SQl数据库.zip (156个子文件)
TableUtil.class 10KB
InfoEntryUi.class 8KB
StudentInforInput.class 7KB
AdministratorUI.class 6KB
StudentUI.class 6KB
TeacherUI.class 6KB
register.class 6KB
RestTest.class 5KB
CourseChoose.class 5KB
JsonReqClient.class 5KB
Login.class 5KB
GradeTable.class 4KB
PowerChange$2.class 4KB
LoginUtil.class 4KB
CourseTable.class 4KB
PasswordChange.class 4KB
PowerChange.class 3KB
StuInfoSearch.class 3KB
SysConfig.class 3KB
InformationUI.class 3KB
CourseChoose$3.class 3KB
HttpClientUtil.class 3KB
User.class 3KB
HttpConnectionManager.class 3KB
TableList.class 3KB
ChangePwUtil.class 3KB
RegisterUtil.class 2KB
CourseChoose$4.class 2KB
Course.class 2KB
CourseChoose$2.class 2KB
CourseTable$2.class 2KB
GradeTable$2.class 2KB
PasswordChange$3.class 2KB
register$2.class 2KB
PasswordChange$2.class 2KB
AbsRestClient.class 2KB
SqlUtil.class 1KB
Login$6.class 1KB
InfoEntryUi$1.class 1KB
CourseChoose$1.class 1KB
StuInfoSearch$1.class 1KB
CourseTable$1.class 1KB
GradeTable$1.class 1KB
TableList$1.class 1KB
StudentInforInput$1.class 1KB
PowerChange$1.class 1KB
Login$3.class 1KB
AdministratorUI$1.class 1KB
Login$2.class 1KB
TeacherUI$1.class 1KB
StudentUI$1.class 1KB
register$1.class 1022B
InfoEntryUi$2.class 1008B
PasswordChange$1.class 984B
InformationUI$1.class 979B
StudentInforInput$2.class 971B
Login$1.class 939B
StudentUI$4.class 921B
StudentUI$5.class 921B
StudentUI$6.class 920B
AdministratorUI$5.class 898B
AdministratorUI$6.class 894B
AdministratorUI$3.class 892B
register$5.class 863B
TeacherUI$4.class 862B
TeacherUI$5.class 858B
StudentUI$3.class 857B
TeacherUI$3.class 856B
register$4.class 855B
register$6.class 855B
register$7.class 855B
register$3.class 855B
CourseTable$3.class 822B
GradeTable$3.class 809B
AdministratorUI$4.class 801B
Login$4.class 730B
AdministratorUI$2.class 717B
StudentUI$2.class 681B
TeacherUI$2.class 681B
InformationUI$2.class 665B
Login$5.class 661B
Main.class 365B
InformationUtil.class 296B
.classpath 802B
sqljdbc_7.0.0.0_chs.tar.gz 2.6MB
mssql-jdbc-7.0.0.jre8.jar 1.11MB
JTattoo.jar 634KB
httpclient-4.3.6.jar 578KB
fastjson-1.2.7.jar 407KB
httpcore-4.3.3.jar 276KB
commons-lang-2.3.jar 240KB
commons-logging-1.1.3.jar 61KB
InfoEntryUi.java 12KB
TableUtil.java 11KB
StudentInforInput.java 11KB
StudentUI.java 9KB
AdministratorUI.java 9KB
TeacherUI.java 9KB
register.java 8KB
RestTest.java 7KB
共 156 条
- 1
- 2
资源评论
- 李诗旸2023-07-28这个学生管理系统的数据库文件非常实用,为我校的学生管理工作提供了方便和高效。
- UEgood雪姐姐2023-07-28学生管理系统的数据库文件的数据准确性很高,让我不用担心学生信息的错误或遗漏问题。
- ShenPlanck2023-07-28学生管理系统的数据库文件提供了多种查询和统计功能,帮助我轻松分析学生的学习情况与表现。
- 李多田2023-07-28这个学生管理系统的数据库文件整体设计合理,使用起来非常流畅,让我能够快速查找和管理学生信息。
- 苏采2023-07-28对于不熟悉数据库的我来说,这个学生管理系统的数据库文件非常易学易懂,操作起来非常方便。
Parzivval
- 粉丝: 159
- 资源: 8
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功