• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

nx: [urlybird] JTable only shows first column

 
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Occasionally my JTable will only display the first column until a row is selected, why is this?
thanks
James
 
author and jackaroo
Posts: 12200
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic