code: public static void replaceContent(final JComponent container, final JComponent content,
  		boolean scrollable)
  	{
  		container.removeAll();
  		if (scrollable)
  		{
  			container.add(new JScrollPane(content));
  		}
  		else
  		{
  			container.add(content);
  		}
  		container.revalidate();
  		replaceContentInMultiSplitPane(container, content, scrollable);
  	}
docs: Replace the content of the given container.
  
  @param container
  the container
  @param content
  the content
  @param scrollable
  the flag if true the new content will be embedded in a {@link JScrollPane}