jxtreetable

Custom TableCellRenderer/TreeTableCellRenderer doesn't render Table cells

﹥>﹥吖頭↗ 提交于 2019-11-27 06:17:22
问题 I made this CustomCellRenderer class intended to be used in JXTreeTable and JXTable objects since I have many of these in my project. So this class implements TreeCellRenderer and TableCellRenderer interfaces: public class CustomCellRenderer extends JLabel implements TreeCellRenderer, TableCellRenderer { @Override public Component getTreeCellRendererComponent(JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { setBackground(selected ? new