menu shortcut shows text and not symbol

Hi,

I set an accelerator on an action that I use in a menu item like this:

action.putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_PERIOD, InputEvent.CTRL_MASK));

In the menu item, I get something like:

<menu text> Ctrl-PERIOD

note the word period is spelt out in text but I want it to show:

<menu text> Ctrl-.

i.e. using the period symbol

Can anyone help me with this?

I know this may be a LAF thing but if so, is it possible to tweak my current LAF , maybe via UIManager to do this?

Party on,

Jim

[595 byte] By [patumairea] at [2007-11-27 9:08:49]
# 1
cross-post: http://forum.java.sun.com/thread.jspa?threadID=5189764&tstart=0
camickra at 2007-7-12 21:47:37 > top of Java-index,Java Essentials,Java Programming...
# 2
Sorry about that,not trying to cross post but I just realised I put this in the wrong forum.Have put in the Swing forum now: http://forum.java.sun.com/thread.jspa?threadID=5189764
patumairea at 2007-7-12 21:47:37 > top of Java-index,Java Essentials,Java Programming...
# 3
you are very quick,you beat me to it
patumairea at 2007-7-12 21:47:37 > top of Java-index,Java Essentials,Java Programming...