Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Stii having problems

 
dave vanweed
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is my code that i have so far could someone please ajdust my code so that it will add what the user puts in the column firstname to a string array and do the same with the next column (lastname)
and the print both out.
i am still having trouble constructing it
thanks very much
davey
 
Paul Stevens
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not actually going to do this for you. It kind of sounds like homework to me. Here is a hint. You don't have anything even coded to try to get them out.
Add a button and attach a listener to it. When the button is pressed, loop through the table and extract the values. Since you don't have a model for your table you will need to do something like:
table.getModel().getValueAt(row,column);
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic