docs: public static JDialog newJDialog(Component parentComponent, String title, boolean modal,
  		GraphicsConfiguration gc)
  	{
  		final JDialog dialog;
  
  		Window window = AwtExtensions.getWindowForComponent(parentComponent);
  		if (window instanceof Frame)
  		{
  			dialog = new JDialog((Frame)window, title, modal, gc);
  		}
  		else if (window instanceof Dialog)
  		{
  			dialog = new JDialog((Dialog)window, title, modal, gc);
  		}
  		else
  		{
  			dialog = new JDialog((Frame)null, title, modal, gc);
  		}
  		return dialog;
  	}