File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
How do you handle "cancel" in dialog box?
justin x kim
Joined: Nov 12, 2003
Nov 12, 2003 03:46:00
How do you handle the users response of "cancel" in a JOptionPane.showInputDialog dialog box?
Can anyone show me simple example?
Joined: Oct 29, 2001
Nov 12, 2003 07:27:00
The return value will be null if the user presses "Cancel". There's plenty of examples in the
"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
How To Ask Questions On JavaRanch
I agree. Here's the link:
subject: How do you handle "cancel" in dialog box?
Java script dialog box
how to cancel a closing JInternalFrame
How does JOptionPane return the proper value?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014