Could not able to refresh JTable.
Sir, i need some suggestion regarding how to repaint a JTable with new values.
i could able to retrieve data from database and displayed in a JTable, which is in a scrollPane. i have a JButton in a JPanel and now i need to replace those values in JTable with new values from the database by clicking in the JButton.
i found little bit of problem. First i displayed 8 rows of values in the JTable. I need to replace those values with new 8 rows after clicking the JButton. But, instead of replacing the old values, when i clicked the JButton it adds new 8 rows with the old 8 rows, giving me 16 rows of values.
could i able to explain you properly. If so, then please give me some suggestion to overcome my problem.
thank you in advance.