• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

adding a row to JTable

 
H Melua
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1780
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
H Melua
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic