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
JFrame.getLocation()
You can register a HierarchyBoundsListener on your JFrame, or use a ComponentListener as suggested by others.
JFrame
ComponentListener
jf.getContentPane().addHierarchyBoundsListener(new HierarchyBoundsAdapter() { @Override public void ancestorMoved(HierarchyEvent e) { updateText(jf, jl); } });