This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Two JTable questions Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "Two JTable questions" Watch "Two JTable questions" New topic
Author

Two JTable questions

Meyer Florian
Ranch Hand

Joined: Oct 20, 2003
Posts: 62
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

Joined: Apr 27, 2003
Posts: 61
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
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Two JTable questions
 
Similar Threads
TableHeader
table sorter
about JTable
how to increase width of the tableheader
TableSorter and Selection gives problems