• Post Reply Bookmark Topic Watch Topic
  • New Topic

refresh problem  RSS feed

 
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..

riderdata=sr.getRiderResults(searchcondition,searchvalue);
buildTable=new BuildTable(riderdata,ridercolumn);
TableSorter sorter = new TableSorter(buildTable);
table = new JTable(sorter);
sorter.addMouseListenerToHeaderInTable(table);
table.getTableHeader().setReorderingAllowed(false);
table.getTableHeader().setBackground(new Color(236,233,216));
scrpan = new JScrollPane(table);
scrpan.getViewport().setBackground(new Color(236,233,216));
scrpan.setBounds(50,180,400,260);
panrid.remove(11);
panrid.add(scrpan);
panrid.validate();
what might be the problem. please get back to me immediately.
thanking you
regards
nr konjeti
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!