Pages

Sunday, November 20, 2011

Tips of java2:-Menu shortcut

Here is a way to add short for adding shortcut like image shown below.

You can add this by simply adding a code to your java program.
mnuItemQuit.setAccelerator(KeyStroke.getKeyStroke("control Q"));
mnuItemQuit is the id of the menu item "Quit"


No comments:

Post a Comment