dcsimg
Mnemonics / KeyboardACtion tooltip text problem
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   I_O
Posted On:   Monday, April 16, 2001 02:23 AM

Hi, When I setMnemonic or registerKeyboardAction on a JButton for the Fs keyboard buttons – the tool tip text is (automatically) appended with the hotkey value. However – the wrong value is shown! . i.e. – I’ve set the hotkey as: myButton.registerKeyboardAction(myAction, KeyStroke.getKeyStroke( KeyEvent.VK_F12, KeyEvent.ALT_MASK, true), JComponent.WHEN_IN_FOCUSED_WINDOW); The tool tip text includes my tool tip text (a short description of the button) appended with “Alt + }” (instead of – “Alt + F12”)! . (same happens with setMnemonics). Does anyone know what can I do? . Thanks!    More>>

Hi,
When I setMnemonic or registerKeyboardAction on a JButton for the Fs keyboard buttons – the tool tip text is (automatically) appended with the hotkey value.
However – the wrong value is shown! .
i.e. – I’ve set the hotkey as: myButton.registerKeyboardAction(myAction,
KeyStroke.getKeyStroke(
KeyEvent.VK_F12,
KeyEvent.ALT_MASK, true),
JComponent.WHEN_IN_FOCUSED_WINDOW);
The tool tip text includes my tool tip text (a short description of the button) appended with “Alt + }” (instead of – “Alt + F12”)! .
(same happens with setMnemonics).

Does anyone know what can I do? .

Thanks!

   <<Less
About | Sitemap | Contact