>>>>> "Roman" == Roman Kennke <[EMAIL PROTECTED]> writes:

Roman> +  public static Component[] getVisibleChildren(Container c)
Roman> +  {
Roman> +    Component[] children = c.getComponents();
Roman> +    Vector visible = new Vector();
Roman> +    for (int i = 0; i < children.length; i++)
Roman> +      if (children[i].isVisible())
Roman> +        visible.add(children[i]);
Roman> +    return (Component[]) visible.toArray(new Container[visible.size()]);

This means multiple allocations per layout.
I wonder whether that is noticeable in a profile.

Tom


_______________________________________________
Classpath-patches mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/classpath-patches

Reply via email to