TaskBar tb = ImViewerAgent.getRegistry().getTaskBar(); tb.addToMenu(TaskBar.WINDOW_MENU, windowsMenu);
    private JMenuBar createMenuBar()    {        JMenuBar menuBar = new JMenuBar();         menuBar.add(createControlsMenu());        menuBar.add(createZoomMenu());        menuBar.add(createRatingMenu());        //menuBar.add(windowsMenu);        //Adds windows menu to the task bar menu.        TaskBar tb = ImViewerAgent.getRegistry().getTaskBar();        tb.addToMenu(TaskBar.WINDOW_MENU, windowsMenu);        return menuBar;    }