JPanel border = new JPanel(new BorderLayout(0, 5));
JPanel panel = null;
if (tag instanceof TypeTextField) {
panel = new PanelTextField((TypeTextField) tag, jScrollPane1);
} else if (tag instanceof TypeTextArea) {
panel = new PanelTextArea((TypeTextArea) tag, jScrollPane1);
} else if (tag instanceof TypeSelectableEdit) {
panel = new PanelSelectableEdit((TypeSelectableEdit) tag, jScrollPane1);
} else if (tag instanceof TypeSelectableRO) {
panel = new PanelSelectable((TypeSelectableRO) tag, jScrollPane1);
} else if (tag instanceof TypeSelectable) {