protected void initialize() {
   super.initialize();
   setTitle(resourceRepository().getString("NEW_REFERENCE_DIALOG.title"));
   getOKAction().setEnabled(false);
   // setPreferredSize(275, 300);
 }
 protected void prepareToShow() {
   updateReferenceName();
   super.prepareToShow();
 }
 /** Makes sure the OK button is disabled. */
 protected void prepareToShow() {
   super.prepareToShow();
   ((JTextField) initialFocusComponent).selectAll();
   getOKAction().setEnabled(virtualProperty.propertyAdapter != null);
 }