按关键词阅读: 学籍 学生 源代码 java 系统 管理
this.add(label1);
this.add(label2);
this.add(label3);
this.add(label4);
this.add(label5);
this.add(label6);
this.add(label7);
this.add(label8);
this.add(textField1);
this.add(textField2);
this.add(textField3);
this.a 。
53、dd(textField4);
this.add(textField5);
this.add(textField7);
this.add(textField8);
this.add(textField9);
this.add(button4);
this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
this.setVisible(true);
public static void main(String args) throws Exceptionsc a= new sc();
a.setDefaultCloseOperation(JFrame.EXI 。
54、T_ON_CLOSE);
public void actionPerformed(ActionEvent e)/scif (e.getSource() = button4)tryClass.forName(sun.jdbc.odbc.JdbcOdbcDriver);
catch (ClassNotFoundException ce) JOptionPane.showMessageDialog(s,ce.getMessage();
try Connection conDriverManager.getConnection(jdbc:odbc:stu,sa,);
Statement stmt = con. 。
55、createStatement();
ResultSet rs=stmt.executeQuery(select * from xinxi where 号 i+textField1.getText()+”);
if(textField1.getText().trim().equals()学号不可为空!JOptionPane.showMessageDialog(this,);
else if(rs.next()确 定要删除该信, 删 除 确 定JOptionPane.showConfirmDialog(null,息嘛 ? n 删 除 的 信 息 将 不 能 恢复,继 续 ? ,JOptionPan 。
56、e.OK_CANCEL_OPTION);
/,JOption.QUESTION_MESSAGE)=0;
where 学 号from xinxistmt.execute(delete=+textField1.getText()+);
JOptionPane.showMessageDialog(null,删除信息成功!);
this.dispose();
应信息 ,无此学号对else JOptionPane.showMessageDialog(null,警告,J0 ptio nPan e.WARNING_MESSAGE);
catch(Exception ed)JOptionPane.showMessageD 。
57、ialog(s,ed.getMessage();
查询界面/cx.javaimport javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.sql.*;
public class cx extends JFrame implements ActionListener static cx s;
static JLabel label1 = new JLabel(学号:);
static JTextField textField1 = new JTextField();
static JLabel label2 = new。
【学生|学生学籍管理系统有java源代码】58、JLabel(姓名 :);
static JTextField textField2 = new JTextField();
static JLabel label3 = new JLabel(性别 :);
static JTextField textField7=new JTextField();
static JLabel label4 = new JLabel(出生日期:) ;
static JTextField textField3 = new JTextField();
static JLabel label5 = new JLabel(政治面貌 :);
static JTextField te 。
59、xtField8=new JTextField();
static JLabel label6 = new JLabel(籍贯 );
static JTextField textField4 = new JTextField();
static JLabel label7 = new JLabel( 系别 :);
static JTextField textField9 = new JTextField();
static JLabel label8 = new JLabel(专业 :);
static JTextField textField5 = new JTextField();
stati 。
60、c JButton button3=new JButton(查询 );
public cx() throws Exceptionthis.setTitle( 查询学生信息 );
this.setLayout(null);
this.setSize(400,400);
label1.setBounds(30, 11, 51, 33);
textField1.setBounds(86, 16, 74, 22);
label2.setBounds(162, 11, 51, 33);
textField2.setBounds(192, 16, 44, 22);
label3.setBounds(241, 11, 70, 33);
textField7.setBounds(275, 15, 50, 25);
label4.setBounds(31, 53, 55, 33);
textField3.setBounds(86, 58, 74, 22);
label5.setBounds(241, 53, 70, 33);
textField8.setBounds(296, 57, 72, 25);
label6.setBounds(163, 53, 26, 33);
textField4.setBounds(191 。
来源:(未知)
【学习资料】网址:/a/2021/0322/0021748076.html
标题:学生|学生学籍管理系统有java源代码( 五 )