• Post Reply Bookmark Topic Watch Topic
  • New Topic

Pridicting Column positions when relogin in JTable  RSS feed

 
prathap venkata naga yelugula
Ranch Hand
Posts: 255
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,
I am able to create a JTable that can change column positions.My doubt here is I am not able to
save that changes.my requirement is whenever I relogin I have to have to get my changed column Order.

Anyone can post answer for this.


Cheers!
Prathap.
 
Rob Camick
Ranch Hand
Posts: 2756
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When the application shuts down you need to iterate through the TableColumnModel to save the current order of the columns. Then when the application is loaded you can use the moveColumn() method of the same class to reorder the columns.
 
Rob Spoor
Sheriff
Posts: 20898
81
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this a class mate or colleague?
 
prathap venkata naga yelugula
Ranch Hand
Posts: 255
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Colleage.

Both used same kind of flow.

Cheers!
Prathap.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!