I am looking for some sort of WindowMotionListener or something of that sort, so when I drag a window by the title bar (or otherwise) I can get location information the same way I would with a MouseMotionListener. I'm trying to make a Swing component that works sort of like MFC does, where you can drag a window into a location and have it snap into it (example: https://i.stack.imgur.com/9vKRR.jpg).
So far, I've gotten the snapping down and the dragging when the user drags the frame by it's contents, but not by title bar which would be much easier for the end user. Is there any way to do get a sort of window drag event? Would I have to make my own windows decorations and add a "drag" even to them?
Any help would be greatly appreciated
Well, what about a
ComponentListeneron theJFrame?...