addPropertyChangeListener(new ValuePropertyHandler(dialog));
  public JDialog createDialog(Component parentComponent, String title)  {    Frame toUse = getFrameForComponent(parentComponent);    if (toUse == null)      toUse = getRootFrame();    JDialog dialog = new JDialog(toUse, title);    inputValue = UNINITIALIZED_VALUE;    value = UNINITIALIZED_VALUE;    dialog.getContentPane().add(this);    dialog.setModal(true);    dialog.setResizable(false);    dialog.pack();    dialog.setLocationRelativeTo(parentComponent);    return dialog;  }