• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Battling microsoft for JFrame position

paul wheaton
Posts: 21791
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have captured the component moved event so that when one of my JFrames gets close to another, they can "dock": I change the moving JFrame's location so that it looks connected to the stationary JFrame.
Unfortunately, Microsoft is in the middle of a drag event, so when the user moves the mouse a little more, Microsoft moves the window a pinch from where it was before, not from where I put the window. So the window jumps back to almost where it was!
This makes it so when a JFrame comes close to another, it starts flashing between the docked position and it's last drag position.
Is there any way to send a message to microsoft to not do that?
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic