Have you looked at Mouse Listeners?
Are you able to change a JFrame's position on the screen?
NormR1
Posting Expert
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656
That looks like what it takes to do the job.
NormR1
Posting Expert
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656
I've had to do this kind of thing more than once or twice, and I've never found a better way than that (apart from minor code tweaks). I put all that code into a small generic utility class WindowDragger, so the code for the main window just has to call
new WindowDragger(this);
to enable dragging by client area.
JamesCherrill
Posting Genius
6,373 posts since Apr 2008
Reputation Points: 2,130
Solved Threads: 1,073