private void jButton_ContinueActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton_ContinueActionPerformed
        try {
            if("CashPurseAccount".equals(type)){
                JOptionPane.showMessageDialog(this, "Cash Purse Account label cannot not be edited", "Cash Purse label edit", JOptionPane.ERROR_MESSAGE);
                return;
            }
            Account account = null;
            Class obj = Class.forName("com.moneychanger.core." + type);
            account = (Account) obj.newInstance();
            boolean status = account.editLabel(accountID, jTextField_NewLabel.getText());
            if (status) {
                JOptionPane.showMessageDialog(this, "Account edited successfully", "Edit Success", JOptionPane.INFORMATION_MESSAGE);
            } else {
                JOptionPane.showMessageDialog(this, "Account could not be edited", "Failure", JOptionPane.ERROR_MESSAGE);
            }
            this.dispose();
        } catch (InstantiationException ex) {
            Logger.getLogger(AccountEditDialog.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            Logger.getLogger(AccountEditDialog.class.getName()).log(Level.SEVERE, null, ex);
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(AccountEditDialog.class.getName()).log(Level.SEVERE, null, ex);
        }
}//GEN-LAST:event_jButton_ContinueActionPerformed