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

Container.getComponentZOrfer - what if component is not present

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 5.0
    • docs
    • sparc
    • solaris_2.6



      Name: sdR10048 Date: 08/04/2003


      Filed By : SPB JCK team (###@###.###)
      JDK : java full version "1.5.0-beta-b12"

      Specification excerpt:
      ======================
      --------- J2SE API spec v.1.5 ---------
      ...
      public final int getComponentZOrder(Component comp)
      Returns the z-order index of the component inside the container.
      The higher a component is in the z-order hierarchy, the bigger
      its index. The component with the lowest z-order index is painted
      first.

      Parameters:
          comp - the component being queried
      Returns:
          the z-order index of the component; otherwise returns -1
          if the component is null

      ...
      ---------- end-of-excerpt ---------------

      Problem description
      ===================
      Current javadoc does not say what if the specified component is
      not inside the container.

      Needed for jck test development.

      ======================================================================

            sharonz Sharon Zakhour (Inactive)
            dsvsunw Dsv Dsv (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: