aspose file tools*
The moose likes Beginning Java and the fly likes How do you handle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How do you handle "cancel" in dialog box?" Watch "How do you handle "cancel" in dialog box?" New topic
Author

How do you handle "cancel" in dialog box?

justin x kim
Greenhorn

Joined: Nov 12, 2003
Posts: 1
How do you handle the users response of "cancel" in a JOptionPane.showInputDialog dialog box?
Can anyone show me simple example?
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8903
    
    8

The return value will be null if the user presses "Cancel". There's plenty of examples in the Swing Tutorial


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How do you handle "cancel" in dialog box?