[JAVA] How to close a JFrame with Escape(ESC)?


[JAVA] How to close a JFrame with Escape(ESC)?

// on ESC key close frame getRootPane().getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put( KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0), "Cancel"); getRootPane().getActionMap().put("Cancel", new A..

[JAVA] How to close a JFrame with Escape(ESC)?에 대한 요약내용입니다.

자세한 내용은 아래에 원문링크를 확인해주시기 바랍니다.


원문링크 : [JAVA] How to close a JFrame with Escape(ESC)?