@Override
  @SuppressWarnings("deprecation")
  public void setModal(boolean modal) {
    myDialog.setModal(modal);
  }
@Override
  @SuppressWarnings("deprecation")
  public void setModal(boolean modal)