JavaSE 6 docs for JFrame has error in code sample

XMLWordPrintable

    • Type: Bug
    • Resolution: Cannot Reproduce
    • Priority: P4
    • None
    • Affects Version/s: 6
    • Component/s: client-libs

      A DESCRIPTION OF THE PROBLEM :
      The code sample in the "setIconImage" method contains a malformed tag that shouldn't be there.

        From the HTML source:

       is equivalent to:
       <pre>
           ArrayList<Image> imageList = new ArrayList<Image>();
           imageList.add(image);
           setIconImages(imageList);
       </pre>


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Use escape sequences &lt; and &gt; for the ArrayList declaration
      ACTUAL -
      The text "ArrayList<Image>" gets rendered and "ArrayList" plus a blank image.

      URL OF FAULTY DOCUMENTATION :
      http://java.sun.com/javase/6/docs/api/javax/swing/JFrame.html#setIconImage(java.awt.Image)

            Assignee:
            Alexander Potochkin (Inactive)
            Reporter:
            Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: