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

layoutContainer needs explanation of Container.add() behaviour

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.3.0
    • docs
    • beta
    • generic
    • generic



      Name: ssT124754 Date: 02/08/2001


      N/A
      [looking at online docs at java.sun.com for j2se/1.3/docs]



      I was wondering the use of layoutContainer() taking an argument of
      the parent Container, when I thought the LayoutManager should already
      have a list of objects.

      Then I noticed that my LayoutManager class was NOT getting passed
      Components as they were being added by Panel.add(Component)

      I infer from this that LayoutManager.layoutContainer() is expected to
      call Container.getAllComponents, and ITERATE THROUGH THEM, instead
      of keeping its own internal cached list.

      If this is the case, you really, really really need to **document** this
      in the LayoutManager.layoutContainer() docs.
      (Review ID: 116554)
      ======================================================================

            sharonz Sharon Zakhour (Inactive)
            ssultanasunw Shaheen Sultana (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: