This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android 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 ]
 
Consider Paul's rocket mass heater.
 
subject: adding a row to JTable
 
Similar Threads
JTable switching
JTable date edit problem
add an empty row to the Jtable
Vector and JTable
JTable - tableChanged