基于Java和Oracle的学生信息管理系统

发布时间 : 星期六 文章基于Java和Oracle的学生信息管理系统更新完毕开始阅读

}

Class.forName(\);

catch (ClassNotFoundException ce) { } try {

Connection con =

JOptionPane.showMessageDialog(s,ce.getMessage());

DriverManager.getConnection(\,\\,\);

Statement stmt = con.createStatement();

ResultSet rs = stmt.executeQuery(\);

rs=stmt.executeQuery(\ID='\+id+\);

if(id.equals(\)) { }

else if(rs.next())//如果账号存在 {

if(oldpad.equals(\)) { \);

} else { 就提示,反之

{

if(pad.equals(0))

53

JOptionPane.showMessageDialog(this,\账号未填写!\);

JOptionPane.showMessageDialog(s,\原密码未填写!

if(rs.getString(\).equals(oldpad))//如果密码正确

{ 能为空!\);

} else { 码已重置!\);

this.setVisible(false); else { }

JOptionPane.showMessageDialog(s,\密码

}

int a = stmt.executeUpdate(\if(a==1)

JOptionPane.showMessageDialog(s,\密

PWD = '\+pad+\+oldpad+\);

{

JOptionPane.showMessageDialog(s,\密码不

失败!\);

rs.close(); stmt.close();

} } 确!\);

} } else {

54

else { }

JOptionPane.showMessageDialog(s,\原密码不正

JOptionPane.showMessageDialog(s,\账号不存在,请重新输入正确的账号!\); } }

}

public static void main(String[] args) { }

@SuppressWarnings(\)

tchlogpassword change = new tchlogpassword(); } else { }

ID.setText(\);

oldpassword.setText(\); password.setText(\); ID.requestFocus(); }

catch (SQLException se) { }

JOptionPane.showMessageDialog(s,se.getMessage());

55

联系合同范文客服:xxxxx#qq.com(#替换为@)