Every loop iteration you are adding the same components to the newly created JPanel. A Component can only have a single parent, thus will only show up within the last Container it has been added to....