I added code tags too, and got rid of some of the long lines. It would have looked a lot better had you not mixed tabs and spaces for your indenting.
fred rosenberger wrote: . . . I have copied your java and put it inside code tags, . . .
TablePanel should be a modal JDialog meaning you can still see
the table but cannot access it until the dialog is disposed