sumprit 0 Light Poster

Sir, i am in a trouble and i need some suggestion from you. I have used a sql query and have successfully showed the results in a JTable from the database.

Now, what i needed is that after clicking a JButton which in a JPanel i need to show different results in the same JTable. What i mean to say that my JTable values changes after clicking the JButton.

I have to display another set of values from the database in the same JTable. i am maintaining a database table in a time basis. if i display results for a certain period then after clicking the JButton i need to show results after that particular time period in the same JTable.

Please give me some suggestion in this regard. Thank you in advance....