public Admin(JPanel adminpanel, JPanel userpanel, JTextField[] userdata, JSlider months, JLabel[] errMess) {

        this.errMess = errMess;
        for (int i = 0; i < this.errMess.length; i++) {
            this.errMess[i].setText("");
        }
        this.adminpanel = adminpanel;
        this.adminpanel.removeAll();
        this.userpanel = userpanel;
        this.months = months;
        this.userdata = userdata;
        String[][] userList = null;
        try {
            //read the list of all users
            userList = CSVHandling.readCSVStringArr2(Sims_1._usersFileName);
        } catch (Exception e) {
            e.printStackTrace();
        }
        if (!(userList == null)) {
            for (int i = 0; i < userList.length; i++) {
                try {
                    //add the users to Admin.users
                    users.add(new User(userList[i][0]));
                } catch (Exception e) {
                    e.printStackTrace();
                }
            }
        }

        //init the array of buttons to open user-data
        userButtons = new JButton[users.size()];
        LinkedList<User> usersHelp = (LinkedList<User>) users.clone();
        for (int i = 0; i < userButtons.length; i++) {
            //display the username as button-label
            userButtons[i] = new JButton(usersHelp.pop().getAccountname());
            //set size of the buttons and the position in the panel
            userButtons[i].setSize(150, 50);
            userButtons[i].setLocation(10 + 160 * (i / 9), 80 + (i % 9) * 60);
            userButtons[i].addActionListener(new AdminActionListener(i));
            this.adminpanel.add(userButtons[i]);
            userButtons[i].setVisible(true);
        }

    }