}
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);