Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Dispatching MouseEvents  RSS feed

 
Nicolas Viollin
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi !

I have a Control containing two labels. When i use the mouse over this control, i change cursor, listen for clicks... but when the mouse reach the location of those labels, the events are losts (quite normal..). I would like to catch them and forward them to my listeners so it would think we are still over the containing Control !! How would i do that ??

thnx
Nicolas
 
Craig Wood
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This test seems to work okay as if the JLabels are not blocking or consuming the MouseEvents. Perhaps you can modify it to demonstrate the situation you described.
 
Nicolas Viollin
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, i forgot to mention i am using swt... so MouseInputAdapter doesn't exist...

Any other way ??
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!