I am using Netbeans for my current project. I require to update a jtable based on what the user selects from a JTree consisting of all the files in his computer. The problem is that this JTable is not getting updated.
I am creating a new model and adding it each time. When I say getValueAt(x,Y) from the new value, it is giving me proper updation but this is not visible in UI. Please help
The only method needed is JTable#setModel(...). You do not need to call fireTableDataChanged(). If you're not seeing the new model's data in the table, chances are you're setting the model to the wrong table.