• 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

Last row of JTable is without text

 
Ranch Hand
Posts: 99
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have descovered a very interesting problem. I have a JTable with a self made Table model inherited from the abstract TM. The information is retrieved from an SQLite3 Database. The last row of this table is show, but data is not. Does anyone have any ideas how I can fix this?

Thanks Greg.
 
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
did you check your For or While loop for data storage??.....it sounds like you are not populating the last records from the d/b.
 
Greg Reeder
Ranch Hand
Posts: 99
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry, the issue was only a tiny hard to find error. Oops. Is it possible to delete this thread?
 
Greg Reeder
Ranch Hand
Posts: 99
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When I was creating the table model, I was getting nullpointerexceptions left and right. One of my ideas was that it was doing something stupid with the rows, so in a for loop, I stupidly put list.size() - 1. This obviously did nothing to help the nullpointerexceptions and i honestly thought i deleted it. But I didnt. Therefore, since the issue was only "- 1", and i was looking for something bigger, I could not find the error at all. But, issue solved.
 
reply
    Bookmark Topic Watch Topic
  • New Topic