• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

close the error dialog using space bar.

 
iyappan sankaran
Ranch Hand
Posts: 58
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I Created a Frame and a customised dialog box. if some of the fields in dialog box is empty i am throwing a JOptionpane dialog with a error message . The probelm is while throwing the error dilaog the focus is on the OK button but still it doesnt closing while i'm pressing the space bar.

how to close the error dialog using space bar.

pls help me.

Thanks
 
Michael Dunn
Ranch Hand
Posts: 4632
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
works OK in this


post a sample program (similar to above) that demonstrates the problem,
showing how you are putting it together.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic