Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JTable column in the middle is empty?  RSS feed

 
Wim Van Geyt
Ranch Hand
Posts: 32
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,

i have a problem with my JTable.

When i run my program i see a JTable with data in it. The first 3 columns are filled with data, the next one is empty. Other columns that come afther the empty one are also filled.

So my 4th column is empty. But it only apears empty, cause when i move the 4th column to the left. The same column that was at 4th place is now at 3th place and filled up with data.

So the 4th column apears empty but it contains data when i move it to the left or the right.

Why does it show an empty column at the 4th place?

Some printscreens to get it clear:

In attachement:

attachment1 = 4th Column is empty
attachement2 = 4th column is moved to 3th place and is filled with data.

Kind regards
Wim



4thColumnIsEmpty.png
[Thumbnail for 4thColumnIsEmpty.png]
4th column in JTable is empty
4th-3thcolumn-filled.png
[Thumbnail for 4th-3thcolumn-filled.png]
4th Column = 3th Column and is filled with data
 
Rob Camick
Ranch Hand
Posts: 2800
15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would guess you have a problem with the TableModel or the TableColumnModel.

Post your SSCCE that demonstrates the problem.
 
Wim Van Geyt
Ranch Hand
Posts: 32
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

this is the code from the tablemodel.

Regards
Wim



And this is the tableColumnModel

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!