Compilable source can be found at: http://www.splashcd.com/jtable.tar
I\'m new to the language, so I\'m not sure if this is acceptable behavior or not.
I cre
To get the most performance out of a TableCellRenderer
, make sure you're not creating a new instance of a component every time getTableCellRenderer
is called. Make the components once and save them as fields of the class.
Also, you'll want to make sure each of the Components you use have the following methods overridden to do nothing:
(and you probably want to hard code isOpaque
).
For more information see: http://docs.oracle.com/javase/6/docs/api/javax/swing/tree/DefaultTreeCellRenderer.html