java系统修改密码_用java编写的图书管理系统中如何修改用户密码,急
q q 邮箱登陆java系统修改密码_⽤java编写的图书管理系统中如何修改⽤户
密码,急
privateStringpwd=null;@OverridepublicvoidactionPerformed(ActionEvente){Source()==OKbut)
{try{Class.forName("sql.jdbc.Driver");}catch(Exceptione1){
private String pwd=null;
@Override
public void actionPerformed(ActionEvent e) {
Source()==OKbut){
try{Class.forName("sql.jdbc.Driver");
讲文明知礼仪演讲稿}catch(Exception e1){System.out.println("加载驱动程序失败!");}
try{String URL = "jdbc:mysql://localhost/java5";
String USERNAME = "root";
String PASSWORD = "";
Connection Connection(URL,USERNAME,PASSWORD);
Statement ateStatement();
String Text();
String Text();
ResultSet uteQuery(Mima);小时代 青木时代
())
{String Text();
//String s="update manager set mpwd='"+newMima+"' from manager where mname='"+user+"'and mpwd='"+Mima+"'";
//String s="update manager set mpwd='"+newMima+"'from manager where mname='root'";
情人节该送什么礼物
String s= "update manager set mpwd = '"+newMima+"' where mpwd = '"+Mima+"'and mname='"+user+"'";
忠烈杨家将豆瓣ateStatement();
int uteUpdate(s);
if(updateMima==1)
{JOptionPane.showMessageDialog(null,"密码修改成功!");}
con.close();
repaint();}
else{JOptionPane.showMessageDialog(null,"该⽤户不存在","警告!", JOptionPane.YES_NO_OPTION);}
福建旅游景点介绍
usertxt.setText("");
oldtxt.setText("");
newtxt.setText("");
} catch(Exception e1)
{
System.out.println(""+e1.getMessage()); }
}
展开

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。