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

Passing null to JOptionPane.showMessageDialog() causes exception

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • None
    • 1.2.0
    • client-libs
    • None

      Check the documentation for JOptionPane.showMessageDialog().

      The documentation for Swing 0.7 says parentComponent can be null.

      However, that causes an IllegalArgumentException to be thrown.

            amfowler Anne Fowler (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: