Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with JTable

 
Code Snooker
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybody !

I want to embbed a JTable in my application, that is having variable number of columns in different rows. For example,

row #1 has 3 columns,
row #2 has 1 column,
row #3 has 5 columns,
row #4 has 6 columna,
row #5 has 3 columns,
row #6 has 2 columns,
row #7 has 3 columns,
row #8 has 1 column
-------------------
-------------------
and so on...

I have only the information that how many columns are there in the particular row, but I don't know how to have varying number of columns for different rows.

Can you put some light over this matter?
Thanks in advance...


Paras
 
Jessica Sant
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm going to move this to the Swing/AWT forum where they talk about JTable all the time.

So please post your replies there. Thanks!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic