addButton.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
Rectangle rect = addButton.getBounds();
Point pt = new Point(rect.x, rect.y + rect.height);
pt = addButton.toDisplay(pt);
menu.setLocation(pt.x, pt.y);
menu.setVisible(true);
}
});