uiswing - components - error in the showMessageDialog example

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 8
    • Affects Version/s: 6-pool
    • Component/s: docs
    • b07
    • generic
    • generic
    • Not verified

      Hello. I believe that there is an error in the showMessageDialog examples on the page below:

      http://download.oracle.com/docs/cd/E17409_01/javase/tutorial/uiswing/components/dialog.html

      The following code fails to compile:

      //default title and icon
      JOptionPane.showMessageDialog(frame,
          "Eggs are not supposed to be green.",
          "Message");


      According to the javadocs, JOptionPane.showMessageDialog accepts 2 or 4-5 parameters. The example above lists 3.

            Assignee:
            Sharon Zakhour (Inactive)
            Reporter:
            Sowmya Kannan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: