code: public static void addModal(JDialog dialog, Component component,
  							  ModalListener listener) {
  	addModal_(dialog, component, listener, defaultModalDepth);
    }
docs: Add a modal component in the dialog.
  
  @param dialog
  the dialog
  @param component
  the component for modal
  @param listener
  the listener for modal