java.awt.event.KeyEvent.setKeyCode()方法的使用及代码示例

x33g5p2x  于2022-01-23 转载在 其他  
字(1.0k)|赞(0)|评价(0)|浏览(148)

本文整理了Java中java.awt.event.KeyEvent.setKeyCode()方法的一些代码示例,展示了KeyEvent.setKeyCode()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。KeyEvent.setKeyCode()方法的具体详情如下:
包路径:java.awt.event.KeyEvent
类名称:KeyEvent
方法名:setKeyCode

KeyEvent.setKeyCode介绍

[英]Set the keyCode value to indicate a physical key.
[中]

代码示例

代码示例来源:origin: runelite/runelite

e.setKeyCode(KeyEvent.VK_UP);
e.setKeyCode(KeyEvent.VK_DOWN);
e.setKeyCode(KeyEvent.VK_LEFT);
e.setKeyCode(KeyEvent.VK_RIGHT);
e.setKeyCode(m);

代码示例来源:origin: runelite/runelite

e.setKeyCode(KeyEvent.VK_UP);
e.setKeyCode(KeyEvent.VK_DOWN);
e.setKeyCode(KeyEvent.VK_LEFT);
e.setKeyCode(KeyEvent.VK_RIGHT);

代码示例来源:origin: org.tentackle/tentackle-swing

e.setKeyCode(KeyEvent.VK_ENTER);

代码示例来源:origin: sc.fiji/Image_5D

e.setKeyCode(KeyEvent.CHAR_UNDEFINED);
e.setKeyCode(KeyEvent.CHAR_UNDEFINED);
e.setKeyCode(KeyEvent.CHAR_UNDEFINED);
e.setKeyCode(KeyEvent.CHAR_UNDEFINED);
e.setKeyCode(KeyEvent.CHAR_UNDEFINED);
e.setKeyCode(KeyEvent.CHAR_UNDEFINED);

相关文章