-
Enhancement
-
Resolution: Duplicate
-
P4
-
None
-
1.4.0
-
x86
-
linux
Name: jk109818 Date: 11/13/2002
FULL PRODUCT VERSION :
java version "1.4.0_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0_01-b03)
Java HotSpot(TM) Client VM (build 1.4.0_01-b03, mixed mode)
A DESCRIPTION OF THE PROBLEM :
JOptionPane.showConfirmDialog provides a useful meaning to
display a standard dialog box with YES|NO|CANCEL Options.
However, it is not possible to change to initially selected
button from YES to another one, which would be very useful
if the YES option is potentially harmful or cannot be undone
or whatever.
Using the JOptionPane.showOptionDialog method provides this
ability, but is disappointing as I have to provide the
buttons myself, doing all the localization work on my own.
Just another parameter to showConfirmDialog with an integer
constant such as YES_OPTION, NO_OPTION to select the
initialValue button would be very nice.
REPRODUCIBILITY :
This bug can be reproduced always.
(Review ID: 164507)
======================================================================
- duplicates
-
JDK-4194883 Need API for setting default button for JOptionPane.show[Internal]ConfirmDialog
-
- Open
-