• Post Reply Bookmark Topic Watch Topic
  • New Topic

data in JTable reappearing when redrawn...  RSS feed

 
Brian Snyder
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey everybody!!!
I have an applet that creates a JTable from a servlet with information from a database. Within the same applet I'm having more than one method create a JTable to the JApplet. I try getContentPane().remove() to reset the data in the chart as well as getCOntentPane().validate() and even getContentPane().repaint..... My problem is that if the table previous to the new one has more rows of information than the new one, the old data is still visible.
I did a search on this site for an answer and haven't found a clear and exact one yet. Could someone take the time to kindly respond to this problem??
Many thanks in advance!!!
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!