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

Docs on JOptionPane are unclear regarding InitialValue

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.1.6
    • docs
    • beta
    • x86
    • windows_nt



      Name: dbT83986 Date: 01/27/99


      The Swing 1.0.3 documentation for the JOptionPane
      method with the most parameters states that
      "optionType" is "Only meaningful if the options
      parameter is null".

      It is unclear if the parameter "initialValue" has
      any meaning if the options paramter is null.

      This came about because I'd like to use a
      standard option type, such as "OK_CANCEL_OPTION",
      but I want to set the initialValue to "Cancel",
      rather than the default "OK".
      (Review ID: 36414)
      ======================================================================

            sharonz Sharon Zakhour (Inactive)
            dblairsunw Dave Blair (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: