add(createLayoutMenu());  target.addModelListener(new BrowserModelAdapter() { public void modelUpdated() { JMenu menu = (JMenu)menuMap.get(new Integer(LAYOUT_MENU)); JMenuItem menuItem = (JMenuItem)menuItemMap.get(new Integer(LAYOUT_CATEGORY_ITEM)); menu.remove(menuItem); menu.add(createCategoryLayoutMenu()); } });
    public BrowserMenuBar(BrowserModel target)    {        menuMap = new HashMap();        menuItemMap = new HashMap();                this.actionTarget = target;                add(createViewMenu());        add(createAnalyzeMenu());    }