Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

heavy addRow problems in a jtable

 
Steffen Durale
Greenhorn
Posts: 13
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi there,
i have a jtable with an abstracttablemodel in a jscrollpane which is in a jpanel which is in jframe...
now my problem is, that if i add data, it is correct in the vectors but the data will not shown correct in the rows...
if i insert as many rows that the scroll bar appears the data will be show correct but only than
i tried to repaint the jscrollpane and the jpanel but nothing happens...
can anybody out there help me, because its horrible and very urgent for me to do this...
regards and thanx in advance
Steffen
 
Swamy Vatti
Ranch Hand
Posts: 57
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try
table.revalidate()
or
scrollpane.doLayout
 
Steffen Durale
Greenhorn
Posts: 13
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i tried this and its the same like before...
sorry... it seems like the textfields in the columns are not updated...
thanx anyway!
Steffen
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic