@Override
    public void actionPerformed(ActionEvent e) {
        String cmd = e.getActionCommand();
        switch (cmd) {
            case CMD_ADD_ACTION:
                User curUser = logicSystem.getCurrentUser();
                String accountName = accountNameField.getText();
                Double balance = new Double(accountBalanceField.getText());
                String accountDesc = accountDescripton.getText();
                //boolean accountDataReady = accountName.isEmpty() || accountDesc.isEmpty();// || accountBalanceField.getText().isEmpty();

                //if (accountDataReady) {
                Account newAccount = new Account();
                newAccount.setNameAcc(accountName);
                newAccount.setCurBalance(balance);
                newAccount.setAccountDesc(accountDesc);
                logicSystem.addAccount(curUser, newAccount);
                logger.info("New account - {} created success. Owner - {}", accountName, curUser);
                //}
                dispose();
                break;
            case CMD_EDIT_ACTION:
                dispose();
                break;
            case CMD_CANCEL_ACTION:
                dispose();
                break;
        }

    }