I am working on a JAVA Gui development.
I have a Jpanel, and I can add a Jlabel to it and drag it to somewhere else inside the panel. Then I can create a new Jlabel, and so on. The problem I can't solve is that when a new JLabel is created and added to the panel, and the panel call repaint(). The existing labels and the new JLabel are lined up. I want the existing labels to stay in their locations when a new label is added.
Any advice? Thank you!