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