2

I used setCursor() method to set a cursor for JTable.
But that cursor is applying only for rows (datapart) of the table.
How can I set cursor for Header of the same table,so that I can resize the column by double clicking its(column's) right edge?

mKorbel
  • 109,525
  • 20
  • 134
  • 319
svkvvenky
  • 1,122
  • 1
  • 15
  • 21

1 Answers1

5

Try this:

table.getTableHeader().setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
tenorsax
  • 21,123
  • 9
  • 60
  • 107