Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Partitioning a JTable

 
Ajay Singh
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am stuck up with one requirement ,so posting it here.i have an Object array containing 3 values.0th Object position contains two fields ,an integer(containing 2008) and and arraylist three elements(ie "A","B","C").likewise 1st position contains 2007 and 2nd postion contains 2006.Arraylist is same in 1st and 2nd position like the 0th position.Now in a JTable i want to display the values of each position with some kind of partitioning.Like first the constant column names of Jan,Feb,Mar would be displayed ,followed by first 2008(table header) ,followed by the values(A,B,C).Next 2007(table header) comes then values(A,B,C),and lastly 2006(table header) and the values (A,B,C).Partitioning should be there before the second and third table header.
Any pointers would be useful.
 
Craig Wood
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is the closest I could get with table components.
 
Ajay Singh
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks craig for your reply
 
look! it's a bird! it's a plane! It's .... a teeny tiny ad
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!