code: public void selectExample(final WComponent example, final String exampleName) {
  		WComponent currentExample = container.getChildAt(0).getParent();
  
  		if (currentExample != null && currentExample.getClass().equals(example.getClass())) {
  			// Same example selected, do nothing
  			return;
  		}
  
  		resetExample();
  		container.removeAll();
  
  		this.getDecoratedLabel().setBody(new WText(exampleName));
  
  		WApplication app = WebUtilities.getAncestorOfClass(WApplication.class, this);
  		if (app != null) {
  			app.setTitle(exampleName);
  		}
  
  		if (example instanceof ErrorComponent) {
  			tabset.getTab(0).setText("Error");
  			source.setSource(null);
  		} else {
  			String className = example.getClass().getName();
  			WDefinitionList list = new WDefinitionList(WDefinitionList.Type.COLUMN);
  			container.add(list);
  			list.addTerm("Example path", new WText(className.replaceAll("\\.", " / ")));
  			list.addTerm("Example JavaDoc", new JavaDocText(getSource(className)));
  			container.add(new WHorizontalRule());
  			tabset.getTab(0).setText(example.getClass().getSimpleName());
  			source.setSource(getSource(className));
  		}
  
  		container.add(example);
  		example.setLocked(true);
  	}
docs: Selects an example.
  
  @param example the example to select.
  @param exampleName the name of the example being selected.