posted 16 years ago
I am creating a program where a JOptionDialog comes up part the way through a task and gets the user to change what they are doing. The problem I get is that the person would be typing and the button keeps being pressed immediately when they press the space bar.
Is there away to disable the spacebar or return key from pressing the button or a way to shift focus away from the "ok" button which is selected by default.
Thanks for any help,