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