wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes close the error dialog using space bar. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "close the error dialog using space bar." Watch "close the error dialog using space bar." New topic
Author

close the error dialog using space bar.

iyappan sankaran
Ranch Hand

Joined: Aug 11, 2003
Posts: 58
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

Joined: Jun 09, 2003
Posts: 4632
works OK in this


post a sample program (similar to above) that demonstrates the problem,
showing how you are putting it together.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: close the error dialog using space bar.
 
Similar Threads
restrict space bar use on textfield on jsp pages
problem while using Dialog.setResizable(true).
enter a value
progress bar and timeout functionality for file upload
Close Dialog Box(Urgent!)