wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes Last row of JTable is without text Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Last row of JTable is without text" Watch "Last row of JTable is without text" New topic
Author

Last row of JTable is without text

Greg Reeder
Ranch Hand

Joined: Jun 14, 2011
Posts: 99

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

Joined: May 08, 2006
Posts: 79
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.


SCJP 1.4, SCWCD 1.4
Greg Reeder
Ranch Hand

Joined: Jun 14, 2011
Posts: 99

Sorry, the issue was only a tiny hard to find error. Oops. Is it possible to delete this thread?
Greg Reeder
Ranch Hand

Joined: Jun 14, 2011
Posts: 99

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.
 
wood burning stoves
 
subject: Last row of JTable is without text
 
Similar Threads
JTable(!!!)
JTable
JTable
JTable
Jtable