Hi.
I am performing a drag and drop to a tree view and want a menu popup right where I drop of, just like context menu. But I just cannot get the x,y position right.

Below is my code.

Code:
int x = event.getDragEndEvent().getX()+treeView.getAbsoluteLeft();
int y = event.getDragEndEvent().getY()+treeView.getAbsoluteTop();
popup.showAt(x, y);
Please let me know how I can get the positioning right. Thanks