请问 java中 JTable单元格怎样才能显示小图标

2024-12-29 18:54:49
推荐回答(1个)
回答1:

覆盖DefaultTableCellRenderer,在

public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected,
boolean hasFocus, int row, int column) {

中写