JavaFX stage closing with keypress doesn't work with TextField

后端 未结 0 1915
甜味超标
甜味超标 2021-02-10 08:36

I want my application to close whenever I press the F12 button.

Here is my code for this:

stage.addEventHandler(KeyEvent.KEY_PRESSED, event -&         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题