Re: Timer event appears to move window
- From: Thomas Hawtin <usenet@xxxxxxxxxxxxxxxxx>
- Date: Wed, 27 Jul 2005 01:00:47 +0100
Ed wrote:
which appears to open the window as expected. However whenever I grab the window by its title bar and drag it around the MDI space (using left mouse drag) it seems to jump back to its start position every 1 second. If I continue to drag it it reappears where I was expecting it and the 1 second later its back at the start position and so it goes on. If I leave go of the left mouse button it jups back to the start and stays there.
Given its every 1 second Im assuming its something to do with the Status Bar Ive coded on which I have a timer updating the clock on the the bottom right of the status bar.
Without debugging anything I would guess that you update (which should be done on the AWT Event Dispatch Thread, btw) is causing an invalidate. That is causing, probably, the DesktopManager to put the internal frame back to the original position. When the cursor moves again BasicInternalFrameUI.BorderListener continues to drag.
Get your debugger out and have a look.
Tom Hawtin -- Unemployed English Java programmer http://jroller.com/page/tackline/ .
- References:
- Timer event appears to move window
- From: Ed
- Timer event appears to move window
- Prev by Date: Re: Timer event appears to move window
- Next by Date: Re: Centering widgets?
- Previous by thread: Re: Timer event appears to move window
- Next by thread: minor Synth changes
- Index(es):