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