strikeThrought in a JTable???



Is it possible to use strikeThrought in the text of a TJTable cell? I have tried the code below in a DefaultTableCellRenderer.getTableCellRendererComponent(). It did set the WEIGHT attribute but not the STRIKETHROUGH?


..... Map map = table.getFont().getAttributes(); map.put(TextAttribute.WEIGHT, TextAttribute.WEIGHT_BOLD); map.put(TextAttribute.STRIKETHROUGH, TextAttribute.STRIKETHROUGH_ON);

setFont(new Font(map))



TIA

Joost
.