Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4778462

RFE: JOptionPane.showConfirmDialog missing parameter for changing initialValue

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.0
    • client-libs



      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)
      ======================================================================

            shickeysunw Shannon Hickey (Inactive)
            jkimsunw Jeffrey Kim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: