code: public static JDialog newJDialog(Component parentComponent, String title,
  		Dialog.ModalityType modalityType, GraphicsConfiguration gc)
  	{
  		return new JDialog(AwtExtensions.getWindowForComponent(parentComponent), title,
  			modalityType, gc);
  	}
docs: Factory method for create a {@link JDialog} object.
  
  @param parentComponent
  the parent component
  @param title
  the title
  @param modalityType
  the modality type
  @param gc
  the {@code GraphicsConfiguration} of the target screen device; if {@code null},
  the default system {@code GraphicsConfiguration} is assumed
  @return the new {@link JDialog}