I want to take some action on my JDialog when the space bar is pressed. After reading the documentation it seems like I there should be methods named "getInputMap" and "getActionMap" to do the binding. However, they do not seem to exist for a JDialog object. How to I accomplish this using JDialog. TIA.