Package niso

Examples of niso.DBHandler.MySQLUpdate()


      SaveModificationsBt.setEnabled(false);
     
    }
    else if(AE.getSource()==DelBt){
      try {
        DBH.MySQLUpdate("DELETE FROM UserAccount where Username='"+DelUserBox.getSelectedItem()+"';");
      } catch (SQLException e) {
        // TODO Auto-generated catch block
        ErrorDel.setForeground(Color.RED);
        ErrorDel.setText("Error in deleting");
      }
View Full Code Here


    }
    else if(AE.getSource()==SaveModificationsBt&&NameBox.getText().length()>0){
      User Selected=Users.get(UserBox.getSelectedIndex());
      String name=Selected.getUserName(),Pass=Selected.getUserPassword();
      try {
        DBH.MySQLUpdate("UPDATE UserAccount SET Username='"+NameBox.getText()+"',Password='"+PassBox.getText()
            +"',UserType='"+UserTypeBox.getSelectedItem()+"' WHERE Username='"+UserBox.getSelectedItem()+"';");
      } catch (SQLException e) {
        // TODO Auto-generated catch block
        NameBox.setText(name);
        PassBox.setText(Pass);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.