private void createNodes(DefaultMutableTreeNode top) {

    // categories
    DefaultMutableTreeNode category = null;
    // leaves
    DefaultMutableTreeNode defaultMutableTreeNode = null;

    // PCB Files
    category = new DefaultMutableTreeNode("PCB Images");
    top.add(category);

    long count = PCBDAO.selectCount();
    for (int i = 1; i <= count; i++) {
      PCB pcb = PCBDAO.selectSingle(i);
      defaultMutableTreeNode = new DefaultMutableTreeNode(pcb);
      category.add(defaultMutableTreeNode);
    }
  }
private void createNodes ( DefaultMutableTreeNode top ) { DefaultMutableTreeNode category = null ; DefaultMutableTreeNode defaultMutableTreeNode = null ; category = new DefaultMutableTreeNode ( "PCB Images" ) ; top . add ( category ) ; long count = PCBDAO . selectCount ( ) ; for ( int i = 1 ; i <= count ; i ++ ) { PCB pcb = PCBDAO . selectSingle ( i ) ; defaultMutableTreeNode = new DefaultMutableTreeNode ( pcb ) ; category . add ( defaultMutableTreeNode ) ; } }
Create the tree

@param top