While a user is using a Choice (pop-up menu), I'd like to show
contextual help for whichever item the user is presently over.
For example, it the items are Apple, Orange, Banana, I'd like to show
in real time the picture of an apple, of an orange or of a banana (in
a separate panel), according on which item the mouse is over.
The problem I have is that, the moment the user clicks the Choice,
the list of items opens in what I assume is a new window generated by
the Peer, and I no longer know where the mouse is. I could run a
thread to check the mouse position periodically, but I understand
that I have no way of asking Java where the mouse is. (I am not using
Swing.)
Do you think this is doable? Can you thing of an approach? Should I
forget about using a Choice and make my own component?