jQuery in Action, 3rd edition
The moose likes Swing / AWT / SWT and the fly likes JTable with multiple row headers Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTable with multiple row headers" Watch "JTable with multiple row headers" New topic

JTable with multiple row headers

Alex Kravets
Ranch Hand

Joined: Jan 24, 2001
Posts: 476
JTable with multiple row headers

I am sure some of you saw this example which was written using JDK 1.3. However, this code seems to break in JDK 1.4+. Whenever AttributiveCellTableModel is being initialized, java.lang.StackOverFlow exception is thrown. Does anyone know why this breaks in 1.4+?


All right brain, you don't like me and I don't like you, but let's just do this one thing so I can get back to killing you with beer.<br /> <br />- Homer Simpson
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
the last few replies of this thread might be worth a read


or, you could email the author of the code (address appears on the below page)

Alex Kravets
Ranch Hand

Joined: Jan 24, 2001
Posts: 476
thanks Michael,

Read the post but it's a bit different from my problem. Send email to guys in the second link you provided -- hopefully it will help.
I did however found a discussion on Russian forum about this (http://www.javable.com/forum/thread.jspa?forumID=3&threadID=8267&messageID=29143)
and it says that in AttributiveCellTableModel where setDataVector() method is overloaded setDataVector() calls setColumnIdentifiers() and setColumnIdentifiers() in return calls setDataVector() so we have infinite recursion and thus java.lang.StrackOverflow is thrown. Not sure why this works in 1.3 though.
I agree. Here's the link: http://aspose.com/file-tools
subject: JTable with multiple row headers
It's not a secret anymore!