Hello everyone, I am trying to update a JTable after a user clicks a button.
I have a bunch of data in a TreeMap, which I then convert to a String, and pass to a DefaultTableModel, and then use that DefaultTableModel in the JTable. When the user clicks a button, they add data to the TreeMap. I then convert the TreeMap into a String. I need some way of passing the data in the updated String to the JTable, and refreshing the JTable.
If anyone has any ideas, please let me know, I've been stuck on this for hours, and nobody on other forums seems to know what to do. I will happily provide any other explainations or code if necessary.