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.
Joined: Feb 23, 2007
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!
Joined: Jun 13, 2009
So much for listening to the advice I gave you in your previous post. Sometimes I wonder why I even bother spending the time.