Is the a prescribed architecture for making individual components and then putting them together to make a complex component containing its individual components?

container ? like array,vector,arrayList,or you can make a new container base on java.util.*;