标签: java
如何在Java中使KeyboardFocusManager听取KeyEvents?
KeyboardFocusManager
KeyEvents
我想让我的程序听 ctrl + z 。我该怎么办?
我试过
(e.getkeyevent() == "z") { if (e.isControlDown()) { .... } }
但它不起作用。