This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
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.