Add dynamic size and location for both JFrames