TaskBar tb = ImViewerAgent.getRegistry().getTaskBar(); tb.addToMenu(TaskBar.WINDOW_MENU, windowsMenu);
    private JMenuBar createMenuBar()    {        JMenuBar menuBar = new JMenuBar();         menuBar.add(createFileMenu());        menuBar.add(createEditMenu());        menuBar.add(createViewMenu());        //menuBar.add(windowsMenu);        menuBar.add(createHelpMenu());        TaskBar tb = ImViewerAgent.getRegistry().getTaskBar();        tb.addToMenu(TaskBar.WINDOW_MENU, windowsMenu);        return menuBar;    }