Hi, I modified my working code to put the table definition in a "sub-class" TableDefinition(), but the table is not displayed anymore that that although it compiles error-free. It's been pretty frustrating the whole day. Any pointers and hints will be much appreciated:
The "TableDefinition" class shouldn't extend JTable... all it's doing is providing data to the "table" variable in your outer class. You are adding the empty "TableDefinition" table (provided only because it extends JTable...) to your scroll pane when you should be adding the "table" table instead.
Write once, run anywhere, because there's nowhere to hide! - /. A.C.