aspose file tools*
The moose likes Beginning Java and the fly likes adding a row to JTable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "adding a row to JTable" Watch "adding a row to JTable" New topic
Author

adding a row to JTable

H Melua
Ranch Hand

Joined: Jan 04, 2005
Posts: 172
Hi

I'm trying to make my applet display the item i add in a JTable but its not really doing anything! (basically i want to add a row)
can someone please tell me whats wrong with my code? (the applet initialises and the tables and buttons are displayed correctly)



thanks
Hannah
Jeff Albertson
Ranch Hand

Joined: Sep 16, 2005
Posts: 1780
Here's some code that does work (I don't do applets)
I'm suspicous of your catch. What if exceptions are being thrown? You should at least e.printStackTrace() to see what's happening, and open you applet's console window to check!


There is no emoticon for what I am feeling!
H Melua
Ranch Hand

Joined: Jan 04, 2005
Posts: 172
I'm suspicous of your catch. What if exceptions are being thrown? You should at least e.printStackTrace() to see what's happening, and open you applet's console window to check![/QB]


thank you done it

yes your right about the catch, there is a bit of coding there, but i didnt put it since its not part of the question...

thanks again

[ January 04, 2006: Message edited by: H Melua ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: adding a row to JTable
 
Similar Threads
JTable switching
JTable - tableChanged
add an empty row to the Jtable
JTable date edit problem
Vector and JTable