• Post Reply Bookmark Topic Watch Topic
  • New Topic

JOptionDialog  RSS feed

 
dave green
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!