Skip to main content

JTable problem (One column apears empty)

Please note these forums are being decommissioned and use the new and improved forums at
1 reply [Last post]
Joined: 2014-01-20

Hi everyone,

i have a strange problem with my JTable.

First: I use a JTable that gets the data from an ArrayList. It uses also a TableModel.

The problem is that, when i see my table in the view, it apears with the data in the columns and rows. But of 6 columns, the 3th or 4th wolumn apears empty. Althought the backend of the column contains data, because when i move that column to another place in the table, it will show the right data for that column.

First attachement is a printscreen of the JTable with the empty column:

The second attachement is one with the same table, but the empty column is moved to the left:

Can anyone help me with this problem?



4thColumnIsEmpty.png121.84 KB
4th3thcolumn_filled.png124.59 KB

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2003-12-22

Although I didn't succeed in viewing your attached images, I think that in order to help you, I need to see your code. Perhaps you can post a SSCCE (Small Self-Contained Compilable Example).

Good Luck,