A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Refactoring for Software Design Smells: Managing Technical Debt
this week in the
OO, Patterns, UML and Refactoring
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
How To Ask Questions On JavaRanch
Have you checked out
subject: How do you handle "cancel" in dialog box?
How does JOptionPane return the proper value?
how to cancel a closing JInternalFrame
Java script dialog box
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015