Java Swing Menu createMenu(final String name, final int mnemonic)

Here you can find the source of createMenu(final String name, final int mnemonic)

Description

create Menu

License

Open Source License

Declaration

public static JMenu createMenu(final String name, final int mnemonic) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import javax.swing.JMenu;

public class Main {
    public static JMenu createMenu(final String name, final int mnemonic) {
        final JMenu menu = new JMenu(name);
        menu.setMnemonic(mnemonic);/*from   w  w w  .  j  a va 2s.c o  m*/
        return menu;
    }
}

Related

  1. applyContextMenuFontRecurse(MenuElement item, Font font)
  2. buildManualsMenu(File appDir)
  3. constructViewMenu(ActionListener act, boolean showUMLOption, boolean showShortenedSourceOption, boolean showJavadocsOption, boolean showSourceOption)
  4. createActionMenu(JTextComponent text, boolean includeModifying)
  5. createMenu(final String label, final String mnemonic, final String accessibleDescription)
  6. createMenu(final String text)
  7. createMenu(final String text, final char mnemonic)
  8. createMenu(String label, int mnemonic, String description)
  9. createMenu(String label, Object... objects)