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

javax.swing.JLayeredPane has used valueOf twice in example code in documentation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9, 10, 11, 12, 13, 14
    • Fix Version/s: 16
    • Component/s: client-libs
    • Subcomponent:
    • Resolved In Build:
      b12
    • CPU:
      x86_64
    • OS:
      generic
    • Verification:
      Verified

      Description

      A DESCRIPTION OF THE PROBLEM :
      In the introductory text of the class under "Details" there are two code examples showing how to add a component to a JLayeredPane. One of the lines reads
      "layeredPane.add(child, Integer.valueOf.valueOf(10));".

      Delete "valueOf.".



      FREQUENCY : always


        Attachments

          Activity

            People

            Assignee:
            psadhukhan Prasanta Sadhukhan
            Reporter:
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: