1. setMnemonic using a sting coderanch.com |
2. setMnemonic: not visible on Windows native look and feel coderanch.comIf I create a menu and apply setMnemonic on some items, when using native look and feel the expected underlines do not show up, with notable exception of checkbox items (which do show up). The keystrokes associated with the mneumonics work fine even though they are not displayed. When I use cross platform look and feel every shows as it should. ... |
3. setMnemonic(int) coderanch.comThe soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - ... |
4. setMnemonic doubt coderanch.com |
5. setMnemonic coderanch.com |
6. setMnemonic coderanch.com |
7. setMnemonic coderanch.comyeah..it will work..no need to implement keylistener interface. i checked and both of these are working(when pressed alt+mnemonic) logout.setMnemonic('l');(->Uppercase and lowercase letters are equivalent for mnemonics.) logout.setMnemonic(KeyEvent.VK_L);(-> here it shud be VK_L not VK_l as i had suggested before) Hope that helped. [ October 17, 2007: Message edited by: rachana rayaguda ] |