// Put visible lines on the JTree.
putClientProperty("JTree.lineStyle", "Angled");
// Configure the Tree with the appropriate Renderers and Editors.
CategoryNodeRenderer renderer = new CategoryNodeRenderer();
setEditable(true);
setCellRenderer(renderer);
CategoryNodeEditor editor = new CategoryNodeEditor(_model);
setCellEditor(new CategoryImmediateEditor(this,
new CategoryNodeRenderer(),
editor));
setShowsRootHandles(true);
setToolTipText("");
ensureRootExpansion();