View Single Post
  #2 (permalink)  
Old 08-04-2007, 09:35 PM
levent levent is offline
Senior Member
 
Join Date: Dec 2006
Posts: 748
levent is on a distinguished road
Hi CruxBlack,

I did not use mouse events on a JWindow, so i dont know possible problems there but as far as i guess those events should work same in ancestors of JComponent. But you can check what is reffered with a JWindow, if a JWindow does not contain inner part of a window, then catching events in that tiny area will be difficult!

About the difference of mouseDragged and mouseMoved: mouseDragged event is fired when you move your mouse while the left mouse button is clicked! In mouseMoved, left mouse button does not need to be clicked. So even moving mouse around on top of your component will fire mouseMoved!

If you write your code and ask your specific problems, i might help better.
Reply With Quote