• 大小: 1.5MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-10-13
  • 语言: Java
  • 标签: java  

资源简介

java学生成绩查询系统,链接mysql,对学生数据进行排序,增删改查,以及关键字查找等功能

资源截图

代码片段和文件信息

package management;

import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JTextField;

public class delect extends SqlConnection implements ActionListener{

/**
 * 
 */
private static final long serialVersionUID = 1L;
JButton search = new JButton(“查询“);
JButton delect1 = new JButton(“删除“);
JTextField[] txt = {new JTextField()new JTextField()new JTextField()new JTextField()new JTextField()new JTextField()};
public void Mainframe(){
search.addActionListener(this);
delect1.addActionListener(this);
super.Mainframe();
super.TheSqlConnection();
setLayout(null);
JLabel label = new JLabel(“删除学生信息“JLabel.CENTER);
label.setBounds(400020050);
super.c.add(label);
label.setFont(new Font(“宋体“Font.BOLD20));

JLabel id = new JLabel(“请输入学号:“JLabel.CENTER);
id.setBounds(905015050);
id.setFont(new Font(“宋体“Font.BOLD20));
super.c.add(id);


search.setBounds(300 100 100 30);
search.setFont(new Font(“宋体“Font.BOLD20));
super.c.add(search);
delect1.setBounds(500 100 100 30);
delect1.setFont(new Font(“宋体“Font.BOLD20));
super.c.add(delect1);
JLabel name = new JLabel(“姓名“JLabel.CENTER);
name.setBounds(10015010050);
name.setFont(new Font(“宋体“Font.BOLD20));
super.c.add(name);
JLabel aclass = new JLabel(“班级“JLabel.CENTER);
aclass.setBounds(10025010050);
aclass.setFont(new Font(“宋体“Font.BOLD20));
super.c.add(aclass);
JLabel chinese = new JLabel(“语文成绩“JLabel.CENTER);
chinese.setBounds(10035010050);
chinese.setFont(new Font(“宋体“Font.BOLD20));
super.c.add(chinese);
JLabel math = new JLabel(“数学成绩“JLabel.CENTER);
math.setBounds(10045010050);
math.setFont(new Font(“宋体“Font.BOLD20));
super.c.add(math);
JLabel English = new JLabel(“英语成绩“JLabel.CENTER);
English.setBounds(10055010050);
English.setFont(new Font(“宋体“Font.BOLD20));
super.c.add(English);
txt[0].setBounds(300 60 300 30);
txt[0].setFont(new Font(“宋体“Font.BOLD20));
super.c.add(txt[0]);
txt[1].setBounds(300 160 300 30);
txt[1].setFont(new Font(“宋体“Font.BOLD20));
super.c.add(txt[1]);

txt[2].setBounds(300 260 300 30);
txt[2].setFont(new Font(“宋体“Font.BOLD20));
super.c.add(txt[2]);
txt[3].setBounds(300 360 300 30);
txt[3].setFont(new Font(“宋体“Font.BOLD20));
super.c.add(txt[3]);
txt[4].setBounds(300 460 300 30);
txt[4].setFont(new Font(“宋体“Font.BOLD20));
super.c.add(txt[4]);
txt[5].setBounds(300 560 300 30);
txt[5].setFont(new Font(“宋体“Font.BOLD20));
super.c.add(txt[5]);
this.setVisible(true);

}
public void actionPerformed(ActionEvent e) {
if(e.getSource() == insert){
dispose();

new i

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-11-09 13:51  Homework3\
     文件         379  2017-10-19 13:18  Homework3\.classpath
     文件         385  2017-10-16 15:38  Homework3\.project
     目录           0  2017-11-10 11:12  Homework3\.settings\
     文件          75  2017-11-10 11:12  Homework3\.settings\org.eclipse.core.resources.prefs
     文件         598  2017-10-16 15:38  Homework3\.settings\org.eclipse.jdt.core.prefs
     目录           0  2017-11-21 16:56  Homework3\bin\
     目录           0  2017-11-21 16:56  Homework3\bin\image\
     文件      251066  2017-11-15 13:35  Homework3\bin\image\bg.jpg
     目录           0  2017-11-21 16:56  Homework3\bin\management\
     文件        5815  2017-11-21 16:56  Homework3\bin\management\delect.class
     文件        7097  2017-11-21 16:56  Homework3\bin\management\failure.class
     文件        1586  2017-11-21 16:56  Homework3\bin\management\helpness.class
     文件        4979  2017-11-21 16:56  Homework3\bin\management\HomePage.class
     文件        5453  2017-11-21 16:56  Homework3\bin\management\insert.class
     文件        7017  2017-11-21 16:56  Homework3\bin\management\keyword.class
     文件        7569  2017-11-21 16:56  Homework3\bin\management\max.class
     文件        7677  2017-11-21 16:56  Homework3\bin\management\min.class
     文件        6531  2017-11-21 16:56  Homework3\bin\management\modify.class
     文件        7100  2017-11-21 16:56  Homework3\bin\management\outstanding.class
     文件        6084  2017-11-21 16:56  Homework3\bin\management\personal.class
     文件        3179  2017-11-21 16:56  Homework3\bin\management\sort$1.class
     文件        3254  2017-11-21 16:56  Homework3\bin\management\sort$2.class
     文件        3171  2017-11-21 16:56  Homework3\bin\management\sort$3.class
     文件        3175  2017-11-21 16:56  Homework3\bin\management\sort$4.class
     文件        3169  2017-11-21 16:56  Homework3\bin\management\sort$5.class
     文件        3175  2017-11-21 16:56  Homework3\bin\management\sort$6.class
     文件        3171  2017-11-21 16:56  Homework3\bin\management\sort$7.class
     文件        5894  2017-11-21 16:56  Homework3\bin\management\sort.class
     文件        1718  2017-11-21 16:56  Homework3\bin\management\SqlConnection.class
     目录           0  2017-11-21 16:56  Homework3\bin\Util\
............此处省略27个文件信息

评论

共有 条评论