• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

nx: [urlybird] JTable only shows first column

 
james render
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Occasionally my JTable will only display the first column until a row is selected, why is this?
thanks
James
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12007
215
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi James
Not enough information to try and offer guesses.
Are you saying that if you start your application 10 times, on some of those occasions your JTable will only display the first column?
Is there any possibility of a timing issue in your code? That is, could you be attempting to display your JTable before it has been properly populated?
Are you running the latest JDK? (I should not have to ask, but are you running an "early access" version of the JDK?) It is possible that there is a bug in the JDK - this is unlikely but it is possible.
Regards, Andrew
 
james render
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Andrew, I'm using jdk 1.4.1, not a beta release.
I'm adding the model to the JTable prior to displaying, but its literally the next call.
Yes, a couple of times out of ten it will only
display the first column until a row is selected.
I'll try putting a pause in-between the model setting and the display.
Hard to know what level of detail to go into when describing this particular problem.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic