Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Moving editable columns in a JTable  RSS feed

jite eghagha
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I had some trouble creating editable columns in a JTable, but that was resovled with code from here:
JTable Header

However the ability to edit my column headers has affected my ability to move columns around. i.e. to exchange the position of a column with anothers.

Could anyone shed some light on how i can keep both abilities.

The code below is the modified constructor from JTable Header, the code allows my data to be sorted by clicking on only the first column, it allows editable headers, but will not allow columns to swicth positions.

any thoughts please.
[ August 11, 2008: Message edited by: jite eghagha ]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!