File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Last row of JTable is without text

 
Greg Reeder
Ranch Hand
Posts: 99
Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
Arun Chidam
Ranch Hand
Posts: 79
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic