Topic: 如何监听键盘事件??

  Print this page

1.如何监听键盘事件?? Copy to clipboard
Posted by: rahoo
Posted on: 2005-01-19 10:06


.
.
.
public void keyTyped(KeyEvent e)
{ if(e.getKeyChar()=='a')speed=-4; //这样好象没用的,按 a 后根本没效果
}
.
.
.

那怎么样才能监听键盘事件啊??书上没说,我真的没办法了,谢谢![color=red][/color]


   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