@Override public void updateUI() { super.updateUI(); if( null != tableCell ) tableCell.updateUI(); }
@Override public void updateUI() { super.updateUI(); if (tree != null) { tree.updateUI(); } if( null != tableCell ) { tableCell.updateUI(); } // Use the tree's default foreground and background colors in the // table. LookAndFeel.installColorsAndFont(this, "Tree.background", // NOI18N "Tree.foreground", "Tree.font" ); // NOI18N if (UIManager.getColor("Table.selectionBackground") == null) { // NOI18N UIManager.put("Table.selectionBackground", new JTable().getSelectionBackground()); // NOI18N } if (UIManager.getColor("Table.selectionForeground") == null) { // NOI18N UIManager.put("Table.selectionForeground", new JTable().getSelectionForeground()); // NOI18N } if (UIManager.getColor("Table.gridColor") == null) { // NOI18N UIManager.put("Table.gridColor", new JTable().getGridColor()); // NOI18N } setUI(new TreeTableUI()); needCalcRowHeight = true; }