Method add(Component c, int index)
Return type: java.awt.Component
Member of: javax.swing.JMenu
[api documentation ] [ main menu]

Examples of how the element is used (one line per example):
[add your own example]

1 menu.add(menuItem, i);
2 projectMenu.add(projectOpt,MENU_PROJECT_IDX);
3 fileMenu.add(recentOpt,MENU_FILE_IDX);
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.