code: public static JDialog newJDialog(Component parentComponent, @NonNull JOptionPane pane,
  		String title)
  	{
  		return parentComponent == null
  			? pane.createDialog(parentComponent, title)
  			: pane.createDialog(title);
  	}
docs: Factory method for create a {@link JDialog} object over the given {@link JOptionPane}.
  
  @param parentComponent
  the parent component
  @param pane
  the pane
  @param title
  the title
  @return the new {@link JDialog}