Package Common

Examples of Common.Keep_It_Safe


        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void save_btnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_save_btnActionPerformed
        // TODO add your handling code here:
        Keep_It_Safe obj=new Keep_It_Safe (this);
        obj.create_account();
        JOptionPane.showMessageDialog(null,obj.getOutput()+"\n");
        if (obj.getOutput2().equals("File safe.dat saved")){
            this.aux.change_label_true();
        }
        this.dispose();
}//GEN-LAST:event_save_btnActionPerformed
View Full Code Here


    private void Login_btnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Login_btnActionPerformed
        // 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();

        }
View Full Code Here

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

        }
View Full Code Here

TOP

Related Classes of Common.Keep_It_Safe

Copyright © 2018 www.massapicom. 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.