Your code makes no sense:
- Why do you have a loop to create 5 identical JFrames?
- Why are you trying to add multiple labels at the same location?
You should NOT be attempting to set the location of your components. Swing was designed to be used with layout managers. Read the section from the Swing tutorial on Using Layout Managers for working examples. You can also nest panels with different layouts to get your desired effects. The examples will also give you a better idea of how to structure your code.
For example, maybe you can use a BoxLayout. It allows you to add strut and glue
components which will help you align components in a line.
when I take the layout manager out, the labels don't even show
That is because layout manager to more than you think. They manage the size and location of a component. Than manage the preferred size of the parent container. They do lots of work behind the scenes to make sure the GUI works properly.