@Override
        public void actionPerformed(ActionEvent e)
        {
            
            Reference.lastActionMinute = new DateTime().getMinuteOfDay();
            
            if (e.getSource() == overviewButton)
            {
                
                Reference.overPanel = new OverPanel();
                Reference.saveAndChangePanel(Reference.overPanel, Reference.bankAccountPanel, Reference.BANK_ACCOUNT);
                
            }
            else if (e.getSource() == debtButton)
                Reference.saveAndChangePanel(Reference.debtAccountPanel, Reference.bankAccountPanel, Reference.BANK_ACCOUNT);
            else if (e.getSource() == billButton)
                Reference.saveAndChangePanel(Reference.billAccountPanel, Reference.bankAccountPanel, Reference.BANK_ACCOUNT);
            else if (e.getSource() == logoutButton)
            {
                
                Reference.loginPanel = new LoginPanel();
                Reference.ex.shutdownNow();
                Reference.saveAndChangePanel(Reference.loginPanel, Reference.bankAccountPanel, Reference.BANK_ACCOUNT);
                 
            }
            else if (e.getSource() == saveButton)
                Reference.saveAccounts(Reference.BANKACCOUNT_DATABASE_FILE.toString(), Reference.BANK_ACCOUNT);
            else if (e.getSource() == newButton)
                accountTableModel.addNewAccount();
            else if (e.getSource() == delButton)
            {
                
                if ( Reference.bankAccountTable.getSelectedRow() == -1)
                {
                    
                    JOptionPane
                    .showMessageDialog(
                            getRootPane(),
                            "No account selected: Please click on an account to highlight it and then click the Remove account button.",
                            "No account selected",
                            JOptionPane.INFORMATION_MESSAGE);
                    
                }else
                    accountTableModel.removeAccount(Reference.bankAccountTable.getSelectedRow());
                
            }
        }