colorButton1.addListener(SWT.Selection, new Listener() {
public void handleEvent(Event event) {
final Button button = (Button) event.widget;
final Composite parent = button.getParent();
Rectangle bounds = button.getBounds();
Point point = parent.toDisplay(new Point(bounds.x, bounds.y));
menu1.setLocation(point.x, point.y + bounds.height);
menu1.setVisible(true);
}
});