code: public void replaceInternalFrame(final String title, final Component component)
  	{
  		if (getCurrentVisibleInternalFrame() != null)
  		{
  			getCurrentVisibleInternalFrame().dispose();
  		}
  		// create internal frame
  		final JInternalFrame internalFrame = JComponentFactory.newInternalFrame(title, true, true,
  			true, true);
  		JInternalFrameExtensions.addComponentToFrame(internalFrame, component);
  		JInternalFrameExtensions.addJInternalFrame(getMainComponent(), internalFrame);
  		setCurrentVisibleInternalFrame(internalFrame);
  	}
docs: Replace the current internal frame with a new internal frame with the given {@link Component}
  as content.
  
  @param title
  the title
  @param component
  the component