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

JOptionPane.showInputDialog doesn't take null parentComponent

XMLWordPrintable

    • swing1.0fcs
    • generic, x86
    • generic, windows_nt
    • Verified

      The following one line causes an exception with Swing-0.7:
      String s = JOptionPane.showInputDialog("Input: ");

      java.lang.IllegalArgumentException: null parent frame
      > at java.awt.Window.<init>(Window.java:93)
      > at java.awt.Dialog.<init>(Dialog.java:111)

      It was fine with Swing-0.6.1.

            amfowler Anne Fowler (Inactive)
            bkimsunw Bae-chul Kim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: