Hi all, I have a jTable in netbeans, basically i have used the model feature to define the column headers and i create a set number of rows, say for this example 50. The problem i'm having is that this is pretty static and if i end up with more than 50 records i get an exception error. I could simple extented the rows but it seems a poor fix.
Is there a way to let the size of the jTable be changable, please remeber i'm using netbeans, so it's not so easy to edit the data directly.
That looks ok, as far as generated code goes. My guess is that where you are trying to add data it's calling the method DefaultTableModel.insertRow(int row, Object data); Where it should be calling DefaultTableModel.addRow(Object data);
If it was me I'd get away from the netbeans generated code and just hand write it.
P.S. when you post blocks of code like that you should sound it with code tags. Look for the code button under where you write your post. [ May 02, 2005: Message edited by: Steven Bell ]
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