I want to know how to set accelerator on JMenuItem.I used to add accelerator on MenuItem.The way is like this:
MenuShortcut shortcut=new MenuShortcut (KeyEvent.VK_N);
then in MenuItem,it's OK.But i can't do this in JMenuItem.what should I do?
by the way,how can I add a short line under a menu.For example ,in many applications if there is a menu File,there must be a short line under the character "F". How can I realize it in my application?