I have four JFrames open in an application. I wish for one of them to be the base JFrame, and when one of the others is closed than everything except the base frame will dispose.
How do I link the other three JFrames so that when any one of them is closed (disposed) they all close?