Changing appearance of JGoPort

Hello,<?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

I want to be able to change the color of a JGoPort when the mouse is over the port (e.g. red) and to change it back to its previous color when the mouse is not over the port anymore. I tried to use the doUncapturedMouseMove() method and I’m able to change the color when the mouse is over the port but the problem I have is that I’m never notified when the mouse leaves the port (i.e. my port always stays red when even if the mouse has left the port).

Thank you for your help.

You’ll need to notice whether the mouse is over nothing or is over some other kind of object. Take a look at how the IconicApp example overrides doUncapturedMouseMove.
The problem is that when there are overlapping objects, it isn’t clear whether there should be a “mouse-leave” event or not. Different kinds of applications could want it either way.