private User getUserByUserName(JComboBox userName) {
        User user = null;
        for (int i = 0; i < Controller.userList.size(); i++) {
            if (Controller.userList.get(i).getUserName().equals(userName.getSelectedItem().toString())) {
                user = Controller.userList.get(i);
            }
        }
        return user;
    }