for (int i = 0; i < children.length; i++) {
String child = children[i];
JPanel cellPanel = new JPanel(new BorderLayout());
CFJLabel label = new CFJLabel(factory.getClientResource(), child);
label.setFont(new Font("Tahoma", Font.BOLD, 7));
cellPanel.add(label, BorderLayout.NORTH);
try {
cellPanel.add(factory.createDefaultEditor(getDataModel().getChild(child)).getJComponent(), BorderLayout.CENTER);
} catch (Exception e) {
e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.