I want to set the position of the JFrame
A next to the JFrame
position B.
My code is:
JFrame instance = A;
B.setLocation(instance.getLocation().x+instance.getSize().width
, instance.getLocation().y+0);
But I get a space betweens JFrames
.
Look at picture: IMAGE EXAMPLE
How can I fix it? Is there some border offset?