The JTable I am using, does not appear till I resize the frame. Relevant Points: 1. I am using a TableModel which extends AbstractTableMode to fetch the data for the JTable. 2. The JTable is being added to the JScrollPane. And the JScrollPane is being added on the JPanel. I have worked on it for a quite a while and cannot figure out why should the JTable be displayed only if the window resizes.
Is there any sizing being done on table columns? Maybe there is not initially enough room to display the table?
Attach listeners to the table and see when events are being fired. You may be adding data to the table, but the table doesn't know it's data is changed. Resizing forces the table to re-validate itself... you can attach listeners and call validate() when the table gets new data in your code...
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
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