I am working with a simple JTable. I know how to update the data in the table. The table overrides prepareRenderer and getToolTipText methods in order to add coloring and tooltips to the cells. The values that determine the way cells would be colored and the data in the tool tips are passed through the constructor of the class that extends JTable. And the problem is that these values can't be updated. Even if add setter methods in that class they cannot be accessed by the main class except the overridden methods. If I initialize the table class again with the button the table disappears.
The following excerpt is from the refresh button in the JPanel:
And the next one is the class that extends JTable:
Any advices and suggestions would be accepted gratefully. Please let me know if I am missing anything or if I have to provide more code.