Fill in the Blanks

Report a typo

Let's say you want to create an Edit menu which triggers when Alt+ E is pressed.

public void createMenu(){
    JMenuBar menuBar = new JMenuBar();
    JMenu editMenu = new JMenu("Edit");
    editMenu.setMnemonic(____________);
    menuBar.add(editMenu);
    setJMenuBar(menuBar);

}

What should come to blank space?

Enter a short text
___

Create a free account to access the full topic