• Post Reply Bookmark Topic Watch Topic
  • New Topic

Two JTable questions  RSS feed

 
Meyer Florian
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I've got 2 questions...
1. How can I set a vertical Header (TableHeader) on the left side? How can I set a left AND a top TableHeader?
2. How can I identify a Table Row? Is there a Way to set an ID per Row and read it out later? I'm not talking about hot to get the Row index (getSelectedRow())...
Thanks
Praiser
 
Ashish Gupta
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Meyer,

1. How can I set a vertical Header (TableHeader) on the left side? How can I set a left AND a top TableHeader?

Look at RowHeader examplehere

2. How can I identify a Table Row? Is there a Way to set an ID per Row and read it out later? I'm not talking about hot to get the Row index (getSelectedRow())...

Not very sure, but my guess is that you will have to get/set those row ids in the vector/array etc where you put other data to be displayed in table.
HTH
Ashish
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!