public AccountTab(Controller controller, User accountOwner, Account account) { this.controller = controller; this.accountOwner = accountOwner; this.account = account; infoPanel = new AccountInfoPanel(controller, account); setName(account.toString()); initComponents(); update(); }