• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

DefaultTableModel help

 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm trying to read in data from a file and then display the data in a table.

I've just managed to read the data into a string. I printed the data out in the command line just to check it was working and it was.
Then I tried to add the DefaultTableModel, but I got a it confused as to what code should be in which method and I can't get my program to compile now.
I think the code is all right, I've just got bits of it in the wrong place.

 
Bartender
Posts: 1561
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The error messages will tell you exactly what's wrong. I think that rather than someone giving you the solution, you would be best served in the long run to try to use the information given in these messages (and the Java API) to try to solve your problem. Then if you find some of the error messages confusing and hit a road block, come on back here, post the error message(s) and your questions and we'll explain it to you.

Best of luck!
 
Rancher
Posts: 3324
32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So much for listening to the advice I gave you in your previous post. Sometimes I wonder why I even bother spending the time.

ignoreList++
 
reply
    Bookmark Topic Watch Topic
  • New Topic