Designing simple cell renderer for Nimbus look and feel
问题 I have a simple-ish cell renderer which is composed of a few JLabel s (the renderer itself extends JPanel ) and I'm trying to get it to render sensibly in the Nimbus look and feel. Basically what is happening is that in the lighter rows (as Nimbus has alternate row coloring ), my specific cell renderer is using the table background color (which is much darker than both lighter and the darker row colors). In my renderer I do: if (isSelected) { setBackground(table.getSelectionBackground); }