Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

refresh problem

narasimharao konjeti
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, I have been add a scrollpane, which contain table to the frame. and i am adding and delating scroll pane, as per the results of the table. but table is not refreshing. The actual problem is, when i am displaying table it is displaying content, and by the moment i click on scroll pane, it is displaying old table,
here is the code that i am using for each every results of the table..

buildTable=new BuildTable(riderdata,ridercolumn);
TableSorter sorter = new TableSorter(buildTable);
table = new JTable(sorter);
table.getTableHeader().setBackground(new Color(236,233,216));
scrpan = new JScrollPane(table);
scrpan.getViewport().setBackground(new Color(236,233,216));
what might be the problem. please get back to me immediately.
thanking you
nr konjeti
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic