Bug 24113 - JOptionPane.showInputDialog should allow 'Cancel'ing
Summary: JOptionPane.showInputDialog should allow 'Cancel'ing
Status: RESOLVED FIXED
Alias: None
Product: classpath
Classification: Unclassified
Component: swing (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: 0.19
Assignee: Lillian Angel
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-29 07:11 UTC by Norman Hendrich
Modified: 2005-10-23 23:09 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2005-10-02 02:41:33


Attachments
testcase to demonstrate the bug (501 bytes, text/plain)
2005-09-29 07:13 UTC, Norman Hendrich
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Norman Hendrich 2005-09-29 07:11:04 UTC
The reference implementation of JOptionPane.showInputDialog()
returns null when the user select the 'Cancel' option.
Classpath cvs 2005.09.29 returns the current value of the input
textfield, which makes it impossible to detect the 'Cancel' option.

See attached testcase; the program should print 'Canceled!' when 
you press the 'Cancel' button.
Comment 1 Norman Hendrich 2005-09-29 07:13:15 UTC
Created attachment 9829 [details]
testcase to demonstrate the bug
Comment 2 Lillian Angel 2005-10-03 15:16:34 UTC
Fixed