Topic: 我的键盘事件怎么不被触发? |
Print this page |
1.我的键盘事件怎么不被触发? | Copy to clipboard |
Posted by: blueman Posted on: 2004-09-21 09:18 代码例子如下: public calss A{ public A() { this.addKeyListener(new myKeyListener()); } class myKeyListener implements KeyListener{ ......... public void keyPressed(KeyEvent e) {....... } } } 怎么我的程序不执行keyPressed中的代码呢? |
2.Re:我的键盘事件怎么不被触发? [Re: blueman] | Copy to clipboard |
Posted by: Crystal8034 Posted on: 2004-09-22 14:09 keyPressed里面写的是什么啊 不把代码贴完整怎么找错啊~! |
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 |