• Post Reply Bookmark Topic Watch Topic
  • New Topic

Pridicting Column positions when relogin in JTable

 
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: 2699
10
  • 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: 20817
68
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!