This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes adding a row to JTable Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply 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: 168
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: 168
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 date edit problem
JTable - tableChanged
JTable switching
Vector and JTable
add an empty row to the Jtable