Hi I'm making a game and I am having some issues with positioning some JLabels on the screen. I might just not know enough about how the positioning works but this is what is going on. My application runs center screened I have that much done correctly. I have all of my JLabels displaying now and I can set them where I want them but it takes much tweaking and when I change my screen resolution nothing is where it should be in my JFrame. I would like for things to be where they should be for anyone using any resolution.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------imgBackingPanel.setBounds(((screenSize.width / 2)-6), ((screenSize.height /2)+116), 230, 52);
Thanks Helloworld922. I took out the equation completely and found that indeed the child component's position is based off of the parent component's position. So I needed no equation to position them within the JFrame. I changed resolutions to test it out and voila it worked like a charm.
imgBackingPanel.setBounds(570, 548, 230, 52);