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

scrollpane add() doesn't remove existing compononent if it exists

    Details

    • Subcomponent:
    • CPU:
      generic
    • OS:
      solaris_10

      Description

      The description for the add() method in ScrollPane says:
          /**
           * Adds the specified component to this scroll pane container.
           * If the scroll pane has an existing child component, that
           * component is removed and the new one is added.
           * @param comp the component to be added
           * @param pos position of child component (must be <= 0)
           */

      However, if a child exists, it doesn't appear to ever be removed.

        Attachments

          Activity

            People

            • Assignee:
              rramsunw Ranganathan Ram (Inactive)
              Reporter:
              amfowler Anne Fowler (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: