posted 16 years ago
I am using a JTable with a class I wrote exteding AbstractTableModel for the data model. When I perform a search on the gui I update the data in the model, but to get the new search results to be displayed I have to click on a column header on the table. Then the results are displayed correctly. I have tried to call repaint() and updateGUI() on the table to refresh the view after the search but I get null pointer exception on both of them. What is the proper way to refresh the display of data from the updated values in the model on the JTable?