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.
Joined: Jul 29, 2002
Hi all. I've finally got it working the way I want it to, by extending AbstractTableModel instead of JTable in my inner class. Thanks for taking time to help me out, much appreciated.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com