How to set a cursor for Header of JTable?

Go To StackoverFlow.com

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?

2012-04-04 04:40
by svkvvenky
and please seach on this forum, sometimes doesn't work - mKorbel 2012-04-04 06:26


5

Try this:

table.getTableHeader().setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
2012-04-04 04:47
by tenorsax
Thank you Max... - svkvvenky 2012-04-04 08:14
Ads