public void setTitle(JFrame frame) {

        String userName = currentUser.getUserName();
        String accessLevel;
        if (currentUser.getAccessLevel() == 0) {
            accessLevel = "Administrator";
        } else {
            accessLevel = "Bruger";
        }
        frame.setTitle(userName + " - " + accessLevel);

    }