This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
There was a lot of code in that process() method which was irrelevant to your question. Even worse, there was code which was commented out. That takes up space and it's distracting. Not to mention that random indenting makes it hard to read code. But it looked to me like you were creating a new JTable object. Is that right? The usual way to update a JTable with new data is to create a new table model and call the JTable's setModel() method.
If that doesn't help, perhaps you could create a shorter (much shorter) example which displays your problem. Just something which reloads the table. No buttons, no unrelated field, no commented-out code, just code which displays the problem and nothing else.
Joined: Sep 23, 2010
Hello Paul Clapham Sir,
Thank you for your reply,
Here I am giving the code which I am getting the problem
Here is the problem where I am calling the getdata("DSSDEV", startDate1);
My JScrollPane is not clearing the table and it is not reloading the new table based on startDate1
Kushi Gadiparthi wrote:So, please have a lokk and suggest me an idea
Paul Clapham wrote:But it looked to me like you were creating a new JTable object. Is that right? The usual way to update a JTable with new data is to create a new table model and call the JTable's setModel() method.
So, you were doing what I thought. Then do what I suggested.