Hey guys,
I think this is a Mac issue, but for some reason my MenuShortCut's don't seem to work:
JMenuItem newItem = new JMenuItem("New Game \t ?N", KeyEvent.VK_A);
newItem.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent event)
{
newGame();
}
});
fileMenu.add(newItem);
Also what is the KeyCode for the Apple key? And how do I use the "four leaf clover" instead of the Apple sign? I.E, it'll have "New Game.." and then the four leaf clover with an N next to it in the menu. Thanks!!
I think this is a Mac issue, but for some reason my MenuShortCut's don't seem to work:
JMenuItem newItem = new JMenuItem("New Game \t ?N", KeyEvent.VK_A);
newItem.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent event)
{
newGame();
}
});
fileMenu.add(newItem);
Also what is the KeyCode for the Apple key? And how do I use the "four leaf clover" instead of the Apple sign? I.E, it'll have "New Game.." and then the four leaf clover with an N next to it in the menu. Thanks!!