private EntitySelectorDialog(Window owner, String title, EntitySelector<T> selector, JComponent north) {
this.selector = selector;
dialog = createDialog(owner, title, createContent(selector, north));
dialog.manageLocation(EntitySelectorDialog.class);
dialog.setOkButtonAsDefault();
selectionSupport = new DialogSelectionSupport(selector.getSelectionSource(), dialog) {
@Override
protected boolean isEnabledFor(Selection s) {
return EntitySelectorDialog.this.selector.getSelectedEntity() != null;
}