Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown


Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to create a JTable using a table model. In the model, I create the data by going through several enumerations and adding the values individually to an array, a 2D array. However, it does not seem to work. Can anyone explain to me what I may be doing wrong...maybe explain the TableModel approach...the code is really long, but it's posted on another post entitled "Why doesn't this JTable work??"
If you have any questions, feel free to ask.
Thanks for any help..!!
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suggested a possible solution to your code
problem in a reply to your previous post. It looks
to me like you lost a method somewhere along the line.
I have found some good material on JTable using
Google. Both Manning Publications Swing book
( and Apress's
Definitive Guide to Swing for Java 2 book
have online excerpts from their respective chapters
covering JTable.
I need a Swing book myself, and am considering both
of those.
Tris Rabar
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks ever so much for your reply! I've been trying to get through this problem for a while and it's getting to me now! Because it's my first attempt at a JTable, I was not sure if what I did was right...I thought it was but when I got the errors...oh well!
Anyway, I will refer to the site you provided and see what I come up with. Thanks a lot for the suggestion!!
All your help very much appreciated.
I'll keep you posted!
Talk sense to a fool and he calls you foolish. -Euripides A foolish tiny ad:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic