Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 Java Swing 的新手。我需要触发事件ctrl+ spaceonJTextArea
JTextArea
我可以计算并发现只触发了一个关键事件。有什么方向吗?
A从KeyEvent继承方法。 getModifiers()InputEvent
KeyEvent
getModifiers()
InputEvent
Ctrl关键是修饰符。