public void createUIComponents(TreeNode node) {
log.debug("Creating ui components for {}", node.getClass());
if (node.getType() == TreeNode.RESOURCE_CLASS) {
ResourceClass rc = (ResourceClass) node;
JLabel l1 = new JLabel("Resource Class: ");
l1.setFont(f);
l1.setAlignmentY(Component.CENTER_ALIGNMENT);
p.add(l1);
String v = rc.getName();
name = new JTextField(v, v.length() + 2);
name.setFont(f);
name.addKeyListener(this);
name.setAlignmentY(Component.CENTER_ALIGNMENT);
p.add(name);