this.addKeyListener(newKeyListener(){@OverridepublicvoidkeyTyped(KeyEvente){}@OverridepublicvoidkeyReleased(KeyEvente){}@OverridepublicvoidkeyPressed(KeyEvente){intkeycode=e.getKeyCode();switch(keycode){caseKeyEvent.VK_UP:{//dosomethingbreak;}caseKeyEvent.VK_DOWN:{//dosomethingbreak;}caseKeyEvent.VK_LEFT:{//dosomethingbreak;}caseKeyEvent.VK_RIGHT:{//dosomethingbreak;}default:break;}}});
網(wǎng)站導(dǎo)航
- zblogPHP模板zbpkf
- zblog免費模板zblogfree
- zblog模板學(xué)習(xí)zblogxuexi
- zblogPHP仿站zbpfang