JTable - Boolean Cell Type - Background

前端 未结 3 1669
小蘑菇
小蘑菇 2020-12-10 14:18

I\'m using the Nimbus L&F with a JTable that has a boolean (checkbox) element as one of its columns.

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-10 14:41

    It's a bug in the synth-installed renderer, quick hack is to force the rendering checkbox opacity to true:

        ((JComponent) table.getDefaultRenderer(Boolean.class)).setOpaque(true);
    

提交回复
热议问题