That is correct. The layout manager is responsible for setting the location of a component based on the rules of the layout manager. So in your case the FlowLayout will override the location of the component.
You should never hardcode the location of a component. What if somebody is using resolution less then 1024 X 768? The component will never show.
You should also never set the size of a component. Every component has a preferred size. In the case of label with the image, the preferred size will be the size of the image.
Read up on Layout Managers and use the appropriate layout manager or combination of layout managers to achieve your desired layout.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…