java swing get child component code example Example: how to get all of the chldren of a panel in java Component[] components = jpanel.getComponents();