Results 1 to 3 of 3
Thread: Add a row in a JTable
- 08-07-2012, 07:59 AM #1
Member
- Join Date
- Feb 2012
- Location
- Norway
- Posts
- 96
- Rep Power
- 0
Add a row in a JTable
Hi,
I am trying to write a code that makes the user able to add a new row to a table.
I have read some forum posts on the subject, but for some reason the code examples does not work.
This line:
the error is that insertRow: "Cannot find symbol" .Java Code:model.insertRow(i,new Object[]{"",""});
What could be missing?
- 08-07-2012, 09:23 AM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,481
- Rep Power
- 16
Re: Add a row in a JTable
Print the full message, as that will tell you what it can't find.
Please do not ask for code as refusal often offends.
- 08-07-2012, 10:10 AM #3
Member
- Join Date
- Feb 2012
- Location
- Norway
- Posts
- 96
- Rep Power
- 0
Similar Threads
-
Jtable inside Jtable
By anchitanc in forum AWT / SwingReplies: 5Last Post: 05-26-2012, 08:10 PM -
JTable validate already existing JTable data and set Background colour issue
By pi4r0n in forum AWT / SwingReplies: 4Last Post: 04-02-2012, 07:57 PM -
Using Jtable
By lemontree45 in forum New To JavaReplies: 6Last Post: 09-05-2011, 05:27 PM -
Adding New JTable in JTable
By anilkumar_vist in forum New To JavaReplies: 0Last Post: 01-27-2010, 08:27 AM -
Jtable duplicates through Hashtable (JTable condition problem) my assignment plz help
By salmanpirzada1 in forum Advanced JavaReplies: 2Last Post: 05-15-2008, 10:15 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks