Constructor JMenuItem(String text, Icon icon)
Member of: javax.swing.JMenuItem
[api documentation ] [ main menu]

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

1 JMenuItem spMI = new JMenuItem("Show Parent",upIcon);
2 JMenuItem menuItem = new JMenuItem("Add frame", Icons.addIcon);
3 menuEditor = new JMenuItem(Msg.getMsg(Env.getCtx(), "Script"), Env.getImageIcon("Script16.gif"));
4 menuEditor = new JMenuItem(Msg.getMsg(Env.getCtx(), "Script"), Env.getImageIcon("Script16.gif"));
5 menuItem = new JMenuItem("Reindex", Icons.reindexIcon);
6 JMenuItem saveItem = new JMenuItem("Sync",
7 new JMenuItem("Reload directory", new ImageIcon("images/reload.gif"));
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.