Detecting user movement of a JFrame
The JavaDoc for a ComponentEvent states that the COMPONENT_MOVED event is triggered only if the component's position has changed. I interpret this to mean the location of the component (coordinates of upper left hand corner). So if the component is resized, but the location does not change, then the COMPONENT_MOVED event should not occur. But if I create a JFrame, add all the required components, pack the frame and make it visible, and then do an addComponentListener() to the frame, I will still get a componentMoved() call if I add another component to the frame (which resizes the frame), but does not change it's position. So I cannot detect when the user grabs the frame and moves it, and when a resize happens by adding more components. Hope this description is clear. Thanks.