Hi objects..thanks for the possible solution...
yes I am using custom renderer for check box and same is attched here...but could not achieve the need
Am setting this for the table
table.setSelectionMod
ListSelectionModel.SINGLE_
and for check box column i an setting this renderer
CheckBoxTableRende
renderer.setBackground(Col
table.
Chec
class CheckBoxTableRenderer extends JCheckBox implements TableCellRenderer
{
protected CheckBoxTableRenderer()
{
setHorizontalAlignment(JCh
setVerticalAlignment(JChec
}
public Component getTableCellRendererCompon
boolean isSelected, boolean hasFocus, int row, int col)
{
setForeground(table.getFor
setBackground(table.getBac
setFont(table.getFont());
setSelected((value != null && ((Boolean) value).booleanValue()));
return this;
}
}
=======
It is still selecting the row when i click check box column.Please let me know how to make the check box click not selecting row...
Main Topics
Browse All Topics





by: objectsPosted on 2009-01-25 at 16:11:37ID: 23463336
you need to create a custom cell renderer that ignores whether the cell is highlighted or not when rendering your checkbox column.