Re: JPopupMenu position changing



Kari Ikonen wrote:

> Coordinates in the MouseEvent are relative to component receiving the
> event. If coordinates are required to be converted between coordinate
> spaces, then SwingUtilities.convertX() -methods can be used.
The only way I found to solve this was to use
SwingUtilities.convertPointToScreen(). Thanks for your help.

Ciao,
Martin
.



Relevant Pages

  • Re: JPopupMenu position changing
    ... best fix would be just to use component receiving the mouseevent ... I'm not sure if I understand you right: I have to receive the mouseevent via ... Prev by Date: ...
    (comp.lang.java.gui)
  • Re: JPopupMenu position changing
    ... Martin Buerger wrote: ... Coordinates in the MouseEvent are relative to component receiving the event. ... then popup location would have been failing also for it. ...
    (comp.lang.java.gui)