我有一个普通的 JButton。 我需要对 JButton 使用 shift+8 (*)。 我该如何实现?
最佳答案
我无法发表评论,所以我就写在这里。 您是否尝试过以下任何解决方案:
Swing's KeyListener and multiple keys pressed at the same time
How can a KeyListener detect key combinations (e.g., ALT + 1 + 1)
关于java - 如何为shift+8(*)或java中的任意两个键添加KeyListenet,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36837844/