import javax.swing.*; import com.ugsolutions.aif.*; import com.ugsolutions.aif.common.*; import com.ugsolutions.iman.common.*; import com.ugsolutions.iman.navigator.*; import com.ugsolutions.util.Registry; public class MyNavigatorApplicationMenuBar extends NavigatorApplicationMenuBar { /** * Constructs the menu bar for navigator application * * @return NONE * @param theApp - The application that menu bar will be created for */ public MyNavigatorApplicationMenuBar ( AbstractAIFUIApplication theApp ) { // Call The Base Class Constructor super(theApp); addCustomMenu(); } protected void addCustomMenu() { Registry registry = Registry.getRegistry(this); JMenu customMenu = new JMenu(registry.getString("customMenu"+"."+AIFConstants.NAME)); customMenu.setMnemonic(registry.getChar("customMenu"+"."+AIFConstants.MNEMONIC,'C')); JMenuItem customTool = addMenuItem(customMenu,"customToolAction"); add(customMenu,4); // Adds your menu after the "Tools" menu in the Navigator application } }