private void Login_btn2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Login_btn2ActionPerformed
// TODO add your handling code here:
if (this.flag==1){
//System.out.println("login");
Keep_It_Safe obj=new Keep_It_Safe (this);
obj.SignIn();
Frame_Output output=new Frame_Output();
if((obj.getOutput().equals("This Account Does Not Exist, Please Create A New User"))||(obj.getOutput().equals("Password Incorrect,Try Again"))||(obj.getOutput().equals("The Account Does Not Exist.Please Create A New Account")))
JOptionPane.showMessageDialog(null,obj.getOutput()+"\n");
else{
output.setVisible(true);
output.setOutput(output.getOutput()+obj.getOutput());
}
this.dispose();
}
else if (this.flag==2){
//System.out.println("delete");
Keep_It_Safe obj=new Keep_It_Safe (this);
obj.delete_account(this.aux);
//obj.delete_all_accounts();
JOptionPane.showMessageDialog(null,obj.getOutput()+"\n"+obj.getOutput2()+"\n");
this.UI_search.setVisible(true);
this.UI_search.createNodes();
this.dispose();
}