Skip to content

Instantly share code, notes, and snippets.

@kasramp
Created August 3, 2020 20:31
Show Gist options
  • Save kasramp/4100689090b9b9627e0e932a12dc0479 to your computer and use it in GitHub Desktop.
Save kasramp/4100689090b9b9627e0e932a12dc0479 to your computer and use it in GitHub Desktop.
JMenuItem jmt = new JMenuItem("Open");
JMenuItem jmt1 = new JMenuItem("Close");
jmt.setMnemonic('O');
jmt1.setMnemonic('C');
jm.add(jmt);
jm.add(jmt1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment