// ctrl -click
if ((event.getModifiers() & ActionEvent.CTRL_MASK) > 0) {
Point point = event.getPoint();
int row = rowAtPoint(point);
int column = columnAtPoint(point);
// if not valid then return
if ( row < 0 || column < 0) {
return;
}
// if this click was on the firstcolumn
if (column == 0) {
? get cell at (row,column)
? set to bold
((JLabel)cell.getCellRenderer()).setFont(new Font(("Courier", Font.BOLD, 12));
}
|