tree.setShowsRootHandles(true);
assertEquals(1, ui.depthOffset);
}
public void testUpdateCellEditor() {
DefaultTreeCellEditor e1 = new DefaultTreeCellEditor(tree,
new DefaultTreeCellRenderer());
tree.setCellEditor(e1);
assertSame(e1, tree.getCellEditor());
assertNull(ui.cellEditor);
assertSame(e1, ui.getCellEditor());
tree.setEditable(true);
assertSame(e1, ui.cellEditor);
assertSame(e1, ui.getCellEditor());
DefaultTreeCellEditor e2 = new DefaultTreeCellEditor(tree,
new DefaultTreeCellRenderer());
ui.cellEditor = e2;
assertSame(e1, ui.getCellEditor());
assertSame(e2, ui.cellEditor);
ui.updateCellEditor();