S
Simon Niederberger
I have a JTable where I want the user to be able to select a row, but not a
single cell. If the user clicks on a cell, the entire row should be
highlighted (=different background color), but the CellEditor shouldn't come
up.
JTable table = new JTable();
// this wil disable cell selection, but also the row
// highlighting disappears
table.setCellSelectionEnabled(false);
Thanks
Simon
single cell. If the user clicks on a cell, the entire row should be
highlighted (=different background color), but the CellEditor shouldn't come
up.
JTable table = new JTable();
// this wil disable cell selection, but also the row
// highlighting disappears
table.setCellSelectionEnabled(false);
Thanks
Simon