}
}
public void delete_account (Frame_Main aux){
Keep_It_Safe.read=new OpenObject(getUI_login().getjTextField1());
SaveObject save=new SaveObject();
boolean flag=false;
Account account=new Account();
String pass;
if(Keep_It_Safe.read.openfile()){
pass=encrypt_md5(getUI_login().getjPasswordField1());
for(int i=0;i<Keep_It_Safe.accounts.size();i++){
account = (((Account) (Keep_It_Safe.accounts.get(i))));
if ((account.get_name()).equals(getUI_login().getjTextField1())){
flag=true;
break;
}
else{
this.output=printuserincorrect();
}
}
if (account.password.equals(pass) && flag==true){
//this.output=printUserInfo(account);
for(int i=0;i<Keep_It_Safe.accounts.size();i++){
account = (((Account) (Keep_It_Safe.accounts.get(i))));
if ((account.get_name()).equals(getUI_login().getjTextField1())){
Keep_It_Safe.accounts.remove(i);
this.output="User Successfully Removed";
this.output2=save.saveFile(Keep_It_Safe.accounts);
break;
}
else{
this.output=printuserincorrect();
}