public AccountFrm() {

        myframe = this;
        mediator = ClassicSingleton.getMediator();

        setTitle("Account Application");

        setDefaultCloseOperation(javax.swing.JFrame.DO_NOTHING_ON_CLOSE);
        getContentPane().setLayout(new BorderLayout(0, 0));
        setSize(575, 310);
        setVisible(false);

        JPanel1.setLayout(null);
        getContentPane().add(BorderLayout.CENTER, JPanel1);
        JPanel1.setBounds(0, 0, 575, 310);
        /*
         /Add five buttons on the pane 
         /for Adding personal account, Adding company account
         /Deposit, Withdraw and Exit from the system
         */
        scrollPane1 = new ASDScrollPane();
        model = setTableModel(mediator);
        table1 = new AccountListTable(model);
        //model=table1
        rowdata = new Object[8];
        newaccount = false;

        JPanel1.add(scrollPane1);
        scrollPane1.setBounds(12, 92, 444, 160);
        scrollPane1.getViewport().add(table1);
        table1.setBounds(0, 0, 420, 0);

        rowdata = new Object[8];

        JButton_PerAC.setText("Add personal account");
        JPanel1.add(JButton_PerAC);
        JButton_PerAC.setBounds(24, 20, 192, 33);
        JButton_CompAC.setText("Add company account");
        JButton_CompAC.setActionCommand("jbutton");
        JPanel1.add(JButton_CompAC);
        JButton_CompAC.setBounds(240, 20, 192, 33);
        JButton_Deposit.setText("Deposit");
        JPanel1.add(JButton_Deposit);
        JButton_Deposit.setBounds(468, 104, 96, 33);
        JButton_Withdraw.setText("Withdraw");
        JPanel1.add(JButton_Withdraw);
        JButton_Addinterest.setBounds(448, 20, 106, 33);
        JButton_Addinterest.setText("Add interest");
        JPanel1.add(JButton_Addinterest);
        JButton_Withdraw.setBounds(468, 164, 96, 33);
        JButton_Exit.setText("Exit");
        JPanel1.add(JButton_Exit);
        JButton_Exit.setBounds(468, 248, 96, 31);

        JButton_PerAC.setActionCommand("jbutton");

        SymWindow aSymWindow = new SymWindow();
        this.addWindowListener(aSymWindow);

        mediator.addColleague(JButton_Deposit);
        mediator.addColleague(JButton_Withdraw);
        mediator.addColleague(JButton_Addinterest);
        mediator.addColleague(table1);

        JButton_Exit.addActionListener(new ExitController());
        JButton_PerAC.addActionListener(new AccountController());
        JButton_CompAC.addActionListener(new AccountController());
        JButton_Deposit.addActionListener(new DepositController());
        JButton_Withdraw.addActionListener(new WithdrawController());
        JButton_Addinterest.addActionListener(new InterestController());

        table1.getSelectionModel().addListSelectionListener(new ListSelectionListener() {

            @Override
            public void valueChanged(ListSelectionEvent e) {
                if (e.getValueIsAdjusting()) {
                    return;
                }
                try {
                    model.send(new Message(AccountManager.ACCOUNT_SELECTED, true));
                } catch (Exception ee) {
                    ee.printStackTrace();
                }
            }
        });

        table1.getTableHeader().addMouseListener(new MouseAdapter() {

            @Override
            public void mouseClicked(MouseEvent me) {
//                Column index selected 0 AccountNr
//                Column index selected 1 Name
//                Column index selected 2 City
//                Column index selected 3 P/C
//                Column index selected 4 Ch/S
//                Column index selected 5 Amount
                int col = table1.columnAtPoint(me.getPoint());
                if (col == 0) {
                    selectedColumn = "acctNumber";
                }else if (col == 1) {
                    selectedColumn = "name";
                }else if (col == 2) {
                    selectedColumn = "city";
                }else if (col == 3) {
                    selectedColumn = "partyType";
                } else if (col == 4) {
                    selectedColumn = "type";
                } else if (col == 5) {
                    selectedColumn = "balance";
                }
                loadTableWithData();
                String name = table1.getColumnName(col);
                System.out.println("Column index selected " + col + " " + name);
            }

        });
    }