Originally posted by Juhan Voolaid:
It works! Thank you.
But now I am facing another problem. After loading the data and displaying it on content panel I chose to open new input file. So I load the new data and again use the same "addContent" method to display that new info, but the old content remains on the panel and new data does not get uptated on the screen.
Any particular reason why you want to reuse the same method and end up adding the same component all over again, when what you are really trying to do is update the
data in the table. Well if you really want to stick to this approach, the you can try calling container.removeAll() before the add.
Another way of achieving the same result would be to update the table
model.