views:

162

answers:

2

I've implemented a TreeCellRenderer that returns a JCheckBox (simple code that the renderer extends a JCheckBox and sets its selection status based on a flag in the item) and it works well. However, when there are more than a few items in the list, it renders VERY slowly. Scrolling in the list and expanding nodes takes over 1 second, which is quite slow. Is there a better way to implement a checkbox tree cell renderer to speed it up?

thanks, Jeff

+2  A: 

If you are able to use a third party library then you could use the CheckBoxTree from JIDE Common Layer.

Mark
A: 

turns out there was something else in my app slowing things down.

Jeff Storey