final ComponentFactory cf = getComponentFactory();
final JList masterList = masterDetailList.getMasterList();
final JList detailList = masterDetailList.getDetailList();
detailList.setCellRenderer(new SchemaElementsRenderer());
masterList.setCellRenderer(new SimilarTypeRenderer());
// build master view
final GridBagLayoutBuilder typeListPanelBuilder = new GridBagLayoutBuilder();
typeListPanelBuilder.append(cf.createLabel("similarTypesView.typeList.label", new ValueModel[] { numSimilarTypesSchema})).nextLine();
typeListPanelBuilder.append(cf.createScrollPane(masterList, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED), 1, 1, true, true);