• Post Reply Bookmark Topic Watch Topic
  • New Topic

DefaultTableModel help

 
charlie mills
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • 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.

 
pete stein
Bartender
Posts: 1561
  • Mark post as helpful
  • send pies
  • 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!
 
Rob Camick
Ranch Hand
Posts: 2699
10
  • Mark post as helpful
  • send pies
  • 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++
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!