if (panel == null) {
return;
}
LayoutItem layout = getLayout();
DataModel model = getAssistantModel().getActModel();
String name = model.getFieldName();
JComponent comp = (JComponent) cards.get(name);
try {
if (comp == null) {
if (layout == null) {
// create comp with default viewer
DataViewer viewer = getFactory().createDefaultEditor(model);
comp = viewer.getJComponent();
add(comp);
} else {
layout.doLayout(this);
}
}
((CardLayout) panel.getLayout()).show(panel, name);
} catch (Exception ex) {