Topic: [求助]关于菜单组合键 |
Print this page |
1.[求助]关于菜单组合键 | Copy to clipboard |
Posted by: scwfeng Posted on: 2006-04-26 18:34 menuitem=new JMenuItem("复制(C)",KeyEvent.VK_C); menuitem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_C,ActionEvent.CTRL_MASK)); 我希望设置Ctrl+C,代码如上,但是运行时不起作用,将后面的CTRL_MASK改为ALT_MASK,则可以使用Alt+C,我不知道问题出在哪?请高人指示! |
2.Re:[求助]关于菜单组合键 [Re: scwfeng] | Copy to clipboard |
Posted by: tomcatexpert Posted on: 2006-04-27 13:41 会不会被其他component 覆盖了? 我的意思是有没有其他component也用CTRL_C作为快键 |
3.Re:[求助]关于菜单组合键 [Re: scwfeng] | Copy to clipboard |
Posted by: scwfeng Posted on: 2006-04-28 08:26 没有啊 |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |