This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTable with multiple row headers

 
Alex Kravets
Ranch Hand
Posts: 476
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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+?

thanks,
Alex
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the last few replies of this thread might be worth a read

http://forum.java.sun.com/thread.jspa?forumID=57&threadID=126564

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

http://www.objects.com.au/java/examples/swing/MultiTableRowHeader.do
 
Alex Kravets
Ranch Hand
Posts: 476
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic