posted 15 years ago
Hello to all Ranchers,
What i want to achieve is even if a component say for example JTextField has focus which is contained in a JPanel ,the JPanel should be able to listen for KeyBindings. Right now whenever the focus goes to JTextField or any component for that matter my KeyBinding code is not working. I want to use Escape key to close the window .Here is the code i have written :