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

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />Think 10 years ahead and start preparing for it right now.<br />~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

so as the row #1 has only one value then it must show only one column of length of 80 chars, whereas row #2 has 5 values, so it must have 5 columns, and each column may have different precize length but no more than 20 chars each. And total length in each row of all columns must not exceed greater than 80. And so as the above example.

Do you some idea to solve this problem... If yes then plz. answer it.

I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com