strikeThrought in a JTable???
- From: Joost Kraaijeveld <J.Kraaijeveld@xxxxxxxxxx>
- Date: Fri, 30 Dec 2005 14:14:08 +0100
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 .
- Prev by Date: JForm is a Swing component framework that supports databinding and validation.
- Next by Date: Re: How to add elements to a JList without preventing refresh
- Previous by thread: JForm is a Swing component framework that supports databinding and validation.
- Next by thread: Install keystroke on action without using a JMenuItem
- Index(es):