your problem is strange, why do you want to do this. cmiiw ...
usually someone, try to move the jframe by dragging it with mouse. so I think,
you could implements/add MouseMotionListener for this. when the frame was
dragged, you should setLocation(defaultX, defaultY)....
just try it by yourself, I never try this one before.