I'm looking for a way to detect when a JFrame is moving (maybe there is some kind of listener).

I have a primary JFrame that loads a 2nd JFrame next to it. I want this 2nd JFrame to move simultaneously with the primary JFrame as though it were attached.

I looked at WindowListener, but unless I am mistaken, there is nothing to detect window movement, just state changes such as minimizing, etc.

Thanks in advance!