• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Moving editable columns in a JTable

 
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 ]
 
On my planet I'm considered quite beautiful. Thanks to the poetry in this tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
    Bookmark Topic Watch Topic
  • New Topic