public void setWindowListMenuItems(List menuItems) {
        windowListMenuItems = menuItems;
        int count = (windowListMenuItems != null) ? windowListMenuItems.size() : 0;
        for (int i = 0; i < count; i++) {
            JMenuItem mi = (JMenuItem) windowListMenuItems.get(i);
            mi.addActionListener(this);
        }
    }