Java: how to register a listener that listen to a JFrame movement
- by cocotwo
How can you track the movement of a JFrame itself? I'd like to register a listener that would be called back every single time JFrame.getLocation() is going to return a new value.
Here's a skeleton that compiles and runs, what kind of listener should I add so that I can track every JFrame movement on screen?
import javax.swing.*;
public class…