Well, the easiest way to fix it would be to move
all of the code in the Main() constructor into a
method called init() and then call the init() method
after you call setData() and before show().<br><br>Mind
you, that is the easy fix...it is not a very good
design though. In the long run you should consider
writing your own TableModel implementation for use in
your JTable. It will give you a lot more control over
your table data.