• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JTable with multiple row headers

 
Ranch Hand
Posts: 476
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't listen to Steve. Just read this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic