Bug 223823 ControlExample: Select Listeners dialog opens behind menu bar
examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/Tab.java
}
		});
		final Button editEvent = new Button (dialog, SWT.PUSH);
		editEvent.setText (ControlExample.getResourceString ("Edit_Event"));
		editEvent.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_BEGINNING));
		editEvent.addSelectionListener (new SelectionAdapter() {
			public void widgetSelected (SelectionEvent e) {
				Point pt = editEvent.getLocation();
				pt = e.display.map(editEvent, null, pt);
				int index = table.getSelectionIndex();
				if (getExampleWidgets().length > 0 && index != -1) {
					createEditEventDialog(dialog, pt.x, pt.y, index);
				}
			}
		});
		editEvent.setEnabled(false);
		table.addSelectionListener(new SelectionAdapter() {
			public void widgetSelected(SelectionEvent e) {
				int fields = 0;
				int index = table.getSelectionIndex();
				if (index != -1 && index < EVENT_INFO.length) {  
					fields = (EVENT_INFO[index].settableFields);
				}
				editEvent.setEnabled(fields != 0);
			}
			public void widgetDefaultSelected(SelectionEvent e) {
				if (editEvent.getEnabled()) {
					Point pt = editEvent.getLocation();
					pt = e.display.map(editEvent, null, pt);
					int index = table.getSelectionIndex();